# Tag Info

0

If one of the "standard" document classes -- article, report, and book -- or a document class that's based on one of the standard classes is in use, a straightforward solution consists in loading the sectsty package and issuing the instruction \allsectionsfont{\singlespacing} in the preamble. An MWE (minimum working example): \documentclass{article} ...

2

A related question has a solution for section headings using the titlesec package. However, if this answer is copied and naïvely modified for chapter headings, it will result in a ! Package titlesec Error: Not allowed in 'easy' settings error. The error arises because the titlesec package works a little differently with chapters than it does sections. An ...

3

You could add the following instructions to the document's preamble (after loading the setspace package): \usepackage{sectsty} \allsectionsfont{\singlespacing} A full MWE (minimum working example): \documentclass[12pt,oneside]{book} \usepackage{lipsum} % for filler text \usepackage{setspace} \doublespacing \usepackage{sectsty} ...

0

There may be some other standard solutions but a quick hack is to use the rule command. Give this a try and it might work albeit it isn't the most elegant solution available. Play around with the width and height parameters. \rule[depth]{width}{height} Cheers

1

You can use minipage to generate a separation as reqested: \documentclass{article} \usepackage[T1]{fontenc} \begin{document} \begin{minipage}{0.20\textwidth} %left column Tech \end{minipage} % \hfill\vline\hfill % \begin{minipage}{0.70\textwidth} %right column lot more text multi line wonderful \end{minipage} \end{document} Best, Frank

0

Swapping \pagebreak for \newpage below the \tableoftables directive fixed the issue

2

Here's a version without \colorbox (apart from the example), but using the very nice \tcbhighmath command from tcolorbox and the configurable settings of highlight math style={....} The most important setting is size=tight, but there is size=minimal too! \documentclass{article} \usepackage{xcolor} \usepackage[most]{tcolorbox} \usepackage{blindtext} ...

0

\colorbox adds padding on the four sides; you want to remove it. \documentclass{article} \usepackage{blindtext} \usepackage{xcolor} \definecolor{light-gray}{gray}{0.89} \newcommand{\graybg}[1]{% \begingroup\setlength{\fboxsep}{0pt}% no padding \colorbox{light-gray}{#1}% \endgroup } \begin{document} \blindtext $\mathsf{A \rightarrow P(x)}$ ...

2

I would not use titlesec together with a koma-class, as the warnings in your document say Usage of package `titlesec' together(scrartcl) with a KOMA-Script class is not recommended. If you do not use any koma specific mechanism, I usually found it easier to change the class, for example to article, than to change from titlesec to something else. Also ...

0

like this : \documentclass[a4paper, 10 pt, oneside, final]{scrartcl} \usepackage[left=4.1cm, right=1.0cm, top=0.35cm, bottom=0.75cm]{geometry} \usepackage{soul} \usepackage{scrpage2} \usepackage{titlesec} \usepackage{marvosym} \usepackage{tabularx} \usepackage[francais]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \pagestyle{empty} ...

3

You can set \parskip, but this needs a minor modification to \years so the \marginnote appears when the paragraph has already started. I set \parskip only locally, for the list of publications. I also reorganized your preamble to have all packages first and settings later. Note that xltxtra and xunicode should not be loaded; just fontspec. Never use \\ for ...

0

I guess this is hardcoded in the *.sty file. When looking at the moderncvbodyi.sty you'll find the following: \renewcommand*{\cventry}[7][.25em]{% \cvitem[#1]{#2}{% {\bfseries#3}% \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}% \ifthenelse{\equal{#5}{}}{}{, #5}% \ifthenelse{\equal{#6}{}}{}{, #6}% .\strut% \ifx&#7&% ...

0

The question started from being akin to Wikipedia and ended up as a duplicate. As you can see, process of colouring the heading and setting it to uppercase is pretty much manual. Is there a command that I can use to automate it? Also, I would like a '.' (dot) after the number. The question # 1 (coloured section) has been answered by @Arne ...

7

Alternatively, you can ask fontspec to scale the fonts according to your main font instead of using a trial-and-error number. This is done by using either MatchLowercase or MatchUppercase as an argument to the Scale option. In your case, you can declare your font as: \newfontfamily{\ezra}{Ezra SIL}[Scale=MatchLowercase] If you are using other fonts in ...

5

You can scale the font when you create your new font family with an additional font feature: \documentclass[twocolumn,10pt]{article} \usepackage{polyglossia} \setmainlanguage{dutch} \usepackage{fontspec} \newfontfamily{\ezra}{Ezra SIL}[Scale=0.8] \DeclareTextFontCommand{\textezra}{\ezra} \begin{document} Nadruk op het in acht nemen van de geboden. ...

2

Place \looseness=1 before the paragraph of text TeX will attempt to set the paragraph using one extra line, so you should end up with 7 lines in each column.

1

Please always post complete documents, but here just remove the {...} around your text and just have \footnotesize or simpler just have text in the table and use \begin{tabular}{>{\footnotesize}m{0.50\textwidth}c} to specify the size as part of the column specification.

4

Honestly, your definition of .5\baselineskip is exactly the length of \medskip, which is equivalent to \vspace{\medskipamount}. If we show these values we get: \verb!\baselineskip =! \the\baselineskip \verb! \medskip =! \the\medskipamount So if we define a new length of that size, it'll look like \medskip. Of course, the major difference would be ...

9

It's probably bad practice, although hard to say with no context. Firstly \\ does not end the paragraph. If your narrative reaches a point where a large visual break is needed then a paragraph break would seem more natural. If all paragraph breaks need the same visual skip then there is nothing more to do, but if this is a special break then using blah ...

2

The input suggested produces ! LaTeX Error: Bad math environment delimiter. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.7 \tag{3} Note that after an error tex tries to "recover" so it can check more of the ...

2

Here's a way to indent the final block by limiting the scope of the \setlength{\parindent}{0pt} and adding an explicit skip at the start. \documentclass{book} \usepackage[turkish]{babel}%türkçe karakter \usepackage[utf8]{inputenc} \usepackage{textpos} \newcommand{\fromtop}[1]{\dimexpr-1in-\topskip-\topmargin-\headheight-\headsep+#1\relax} ...

Top 50 recent answers are included