Text Formattingformatting

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

formatting

Post by shine »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

formatting

Post by Stefan Kottwitz »

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
LaTeX.org admin
shine
Posts: 4
Joined: Sun Mar 17, 2019 12:03 am

formatting

Post by shine »

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 3359 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

formatting

Post by Stefan Kottwitz »

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
LaTeX.org admin
shine
Posts: 4
Joined: Sun Mar 17, 2019 12:03 am

formatting

Post by shine »

please find attached the tex file with some text.

thanks
Attachments
document.tex
(1.09 KiB) Downloaded 163 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

formatting

Post by Stefan Kottwitz »

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

Code: Select all

\documentclass[journal]{IEEEtran}

%\usepackage{ragged2e}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{cite}
\usepackage{fixltx2e}

\usepackage{mathtools}

\usepackage{amsmath}
\usepackage{multirow}
\usepackage{physics}

\usepackage[caption=false]{subfig}

\begin{document}
%\let\normalsfcodes\nonfrenchspacing
\nonfrenchspacing

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.

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.


\end{document}
nonfrenchspacing.png
nonfrenchspacing.png (40.97 KiB) Viewed 3354 times
Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

formatting

Post by Stefan Kottwitz »

By the way, I think the spacing looks better with

\usepackage{microtype}

It reduces the wide gaps between words.

Stefan
LaTeX.org admin
shine
Posts: 4
Joined: Sun Mar 17, 2019 12:03 am

formatting

Post by shine »

yes, it looks better.

Many thanks for your response and time.
Post Reply