LaTeX forum ⇒ Text Formattingformatting Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
shine
Posts: 4
Joined: Sun Mar 17, 2019 12:03 am

formatting

Postby shine » Sun Mar 17, 2019 12:17 am

Hello,

Can any one please tell how to put two spaces after period(full stop) in IEEEtran in latex. I have tried \nonfrenchspacing, but it dint work.

Thanks

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Mar 17, 2019 10:05 am

Hello shine,

welcome to the forum!

Do you use the cite package? If yes, this may help, after \begin{document}:

\let\normalsfcodes\frenchspacing

Or, in the preamble:

\AtBeginDocument{\let\normalsfcodes\frenchspacing}

Stefan
Site admin

shine
Posts: 4
Joined: Sun Mar 17, 2019 12:03 am

Postby shine » Sun Mar 17, 2019 11:13 am

Thanks @Stefan for your response. I am using cite package, I used \let\normalsfcodes\frenchspacing. The output obtained is shown in the file attached. However, it looks similar to me to the case without using \let\normalsfcodes\frenchspacing.

Can you please look at this attachment and give me suggestions.

Thanks
Attachments
spacing.png
spacing.png (152.41 KiB) Viewed 385 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Mar 17, 2019 11:19 am

Can you perhaps provide a small version of your document (minimal text) that shows the issue? I could guess about cite, but need to see more, such as the complete preamble.

Stefan
Site admin

shine
Posts: 4
Joined: Sun Mar 17, 2019 12:03 am

Postby shine » Sun Mar 17, 2019 11:31 am

please find attached the tex file with some text.

thanks
Attachments
document.tex
(1.09 KiB) Downloaded 24 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Mar 17, 2019 11:38 am

Here it works after simply adding \nonfrenchspacing after \begin{document}:

  1. \documentclass[journal]{IEEEtran}
  2.  
  3. %\usepackage{ragged2e}
  4. \usepackage{graphicx}
  5. \usepackage{epstopdf}
  6. \usepackage{cite}
  7. \usepackage{fixltx2e}
  8.  
  9. \usepackage{mathtools}
  10.  
  11. \usepackage{amsmath}
  12. \usepackage{multirow}
  13. \usepackage{physics}
  14.  
  15. \usepackage[caption=false]{subfig}
  16.  
  17. \begin{document}
  18. %\let\normalsfcodes\nonfrenchspacing
  19. \nonfrenchspacing
  20.  
  21. The core loss is composed of the hysteresis loss, eddy current loss and the residual loss. The hysteresis loss is the power lost in magnetization and demagnetization of the core, caused by the multi-valued nature of the B-H curve. Thus, it is dependent on the frequency of the magnetizing force f and the area of the hysteresis loop, which in turn depends on square of magnetic flux density.
  22.  
  23. The eddy current loss is caused by the current flowing in the core due to time varying magnetic field. Its generating mechanism is similar to the current flowing in the conductor, and have same effects as ohmic loss. Eddy current loss is directly proportional to the square of frequency f and the square of magnetic flux density B.
  24.  
  25.  
  26. \end{document}


nonfrenchspacing.png
nonfrenchspacing.png (40.97 KiB) Viewed 380 times


Stefan
Site admin

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Mar 17, 2019 11:39 am

By the way, I think the spacing looks better with

\usepackage{microtype}

It reduces the wide gaps between words.

Stefan
Site admin

shine
Posts: 4
Joined: Sun Mar 17, 2019 12:03 am

Postby shine » Sun Mar 17, 2019 11:43 am

yes, it looks better.

Many thanks for your response and time.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 2 guests