A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

# Tag Info

2

You could use \setlength{\hangindent}{\parindent} in place of hangindent=0.35cm.

1

In TeXstudio, you can select the blocks with ctrl+alt+shift+leftmouse+drag. But I find easier to do it with notepad++ (free) as advocated by @Sango.

2

Probably the following suits your needs: \documentclass[12pt,oneside,a4paper]{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[landscape,left=2cm,right=0.5cm,top=1.5cm, bottom=1.5cm,headsep=1cm,headheight=1.0cm,]{geometry} \usepackage{tabularx, ragged2e} \usepackage{wasysym} % \Square \usepackage{booktabs} \begin{document} \...

1

It is the \titlepacing* command which is useful here: it has 3 arguments, the first one being used for a possible indent of the heading, the other two for the vertical spacing before and after the heading. I used the simplified syntax, explained in § 3.2 Spacing of the dpcumentation: \documentclass[12pt]{book} \usepackage{titlesec} \usepackage{lipsum} \...

1

The correct command to indent the subsection title is actually the \titlespacing command. See the documentation of titlesec for more information. For example, \documentclass[12pt]{book} \usepackage{titlesec} \usepackage{lipsum} \titleformat*{\subsection}{\bfseries\large} \titlespacing{\subsection}{\parindent}{2mm}{2mm} \begin{document} \subsection*{Test}...

2

You get the warning Package caption Warning: \captionsetup{type*=...} or \captionof (caption) outside box or environment on input line 56. See the caption package documentation for explanation. Never ignore warnings, this is telling you that the paragraph indent (and other things) will be messed up. Move the \captionof inside the center ...

2

The \colorbox macro from xcolor adds an \fboxsep border (actually it uses \fbox). This compensates for the excess horizontal space. \documentclass[letterpaper,11pt]{article} \usepackage{kpfonts} \setlength{\parskip}{\baselineskip}% \setlength{\parindent}{0pt}% \usepackage{xcolor} \definecolor{smokyblack}{rgb}{0.06, 0.05, 0.03} \definecolor{mygrey}{rgb}{0.1,...

1

I solved the problem by using \newline instead of \\. Here it is a working example: \documentclass{article} \usepackage[ruled,vlined,dotocloa]{algorithm2e} \usepackage{listings} \begin{document} \begin{algorithm}[!h] \SetAlgoLined \small \DontPrintSemicolon \LinesNumbered \KwIn{Input 1\newline Input 2\newline ...

Top 50 recent answers are included