Text Formatting ⇒ Indentation (Times Two)
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Indentation (Times Two)
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
-- Zapp Brannigan, Futurama (season 1, episode 4)
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
Indentation (Times Two)
Change \usepackage{microtype} to \usepackage[protrusion=false]{microtype}, or look at the other options available from the microtype package.(1) In my homemade citation command the `---' is in the margin. 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:(2) The last sentence in \item three in the enumerate environment is not indentet. How do I fix this problem?
\hspace{1.5em} Eleverne ...
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.PS. I use the dvips option to the geometry package since I will have to use graphics later---pdftex conflict!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Indentation (Times Two)
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:[…] (I know it is not a MWE but last time I tried to create one, my MWE file was not sufficient.) […]
I tested several modifications. Obviously the long dash has outstanding properties. So I would consider the code below more as a workaround.svend_tveskaeg wrote:[…] In my homemade citation command the `---' is in the margin. How do I fix this problem? […]
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$%
}
Modify the according enumerate environment as shown below.svend_tveskaeg wrote:[…] The last sentence in \item three in the enumerate environment is not indentet. How do I fix this problem? […]
Code: Select all
\begin{enumerate}[label=(\arabic*),leftmargin=*,labelsep=\parindent,parsep=0pt,listparindent=\parindent]
% contents
\end{enumerate}
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.svend_tveskaeg wrote:[…] PS. I use the dvips option to the geometry package since I will have to use graphics later---pdftex conflict! […]
Addendum:
Regarding the first issue the solution of frabjous seems to better.
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Indentation (Times Two)
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.
-- Zapp Brannigan, Futurama (season 1, episode 4)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Indentation (Times Two)
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.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). […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Re: Indentation (Times Two)
I have now put a check mark at the first entry.
-- Zapp Brannigan, Futurama (season 1, episode 4)