Text FormattingIndentation (Times Two)

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Indentation (Times Two)

Post by svend_tveskaeg »

Dear LaTeX friends.

First, please take a look at the attached TeX file. (I know it is not a MWE but last time I tried to create one, my MWE file was not sufficient.) The resulting PDF file is also attached.

Two questions:

(1) In my homemade citation command the `---' is in the margin. How do I fix this problem?

(2) The last sentence in \item three in the enumerate environment is not indentet. How do I fix this problem?

Thanks in advance!

PS. I use the dvips option to the geometry package since I will have to use graphics later---pdftex conflict!
Attachments
funk.pdf
The resulting file.
(41.67 KiB) Downloaded 261 times
funk.tex
The source code.
(5.38 KiB) Downloaded 237 times
Last edited by svend_tveskaeg on Tue Apr 06, 2010 1:01 pm, edited 1 time in total.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Indentation (Times Two)

Post by frabjous »

(1) In my homemade citation command the `---' is in the margin. How do I fix this problem?
Change \usepackage{microtype} to \usepackage[protrusion=false]{microtype}, or look at the other options available from the microtype package.
(2) The last sentence in \item three in the enumerate environment is not indentet. How do I fix this problem?
Nothing else in the document is indented, so it seems a bit strange you want this indented, but indentation is usually turned off inside enumerations. Probably best to add some space manually:

\hspace{1.5em} Eleverne ...
PS. I use the dvips option to the geometry package since I will have to use graphics later---pdftex conflict!
What kind of graphics do you need to add, and how are you compiling? You may want to use the epstopdf package so you can keep compiling with pdftex rather than go through dvips.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Indentation (Times Two)

Post by localghost »

svend_tveskaeg wrote:[…] (I know it is not a MWE but last time I tried to create one, my MWE file was not sufficient.) […]
That shouldn't keep you from trying again. The last time was a bad coincident which can happen. So, next time please build a MWE again.
svend_tveskaeg wrote:[…] In my homemade citation command the `---' is in the margin. How do I fix this problem? […]
I tested several modifications. Obviously the long dash has outstanding properties. So I would consider the code below more as a workaround.

Code: Select all

% Letter notationen.
\newcommand{\bog}[1]{\textsl{#1}}
\newcommand{\citat}[2]{%
  \noindent\emph{#1}\newline%
  \vphantom{0}{---} \bog{Fælles Mål 2009: Matematik}, side~$#2$%
}
At the moment I can't explain this behaviour. Perhaps somebody else can.
svend_tveskaeg wrote:[…] The last sentence in \item three in the enumerate environment is not indentet. How do I fix this problem? […]
Modify the according enumerate environment as shown below.

Code: Select all

\begin{enumerate}[label=(\arabic*),leftmargin=*,labelsep=\parindent,parsep=0pt,listparindent=\parindent]
% contents
\end{enumerate}
The list parameter \listparindent is usually intialized with Zero so there is no indentation by default.
svend_tveskaeg wrote:[…] PS. I use the dvips option to the geometry package since I will have to use graphics later---pdftex conflict! […]
That doesn't matter. You won't need this option. Use the epstopdf package to convert your graphics files. Note the instructions in the manual.

Addendum:
Regarding the first issue the solution of frabjous seems to better.


Thorsten
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Indentation (Times Two)

Post by svend_tveskaeg »

Thanks for the solution to both of my problems!

I did not make myself clear at first, sorry: The reason why I use the dvips driver for the geometry package is that I am using the pspicture environment---I never use external graphics (unless I have no other choise).

Thanks for helping me, both of you!

PS. I will try to create a MWE in the future.
Last edited by svend_tveskaeg on Tue Apr 06, 2010 1:01 pm, edited 1 time in total.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Indentation (Times Two)

Post by localghost »

svend_tveskaeg wrote:[…] The reason why I use the dvips driver for the geometry package is that I am using the pspicture environment---I never use external graphics (unless I have no other choise). […]
Just believe when you are told that you don't need that option. Especially not when using pstricks. These driver options once where meant to help packages like color, graphicx or hyperref in supporting different compiler engines. Nowadays these packages detect on their own which compiler engine is running and load the appropriate driver themselves.
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Indentation (Times Two)

Post by svend_tveskaeg »

Okay, thank you!

I have now put a check mark at the first entry.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply