3
votes
0answers
104 views

About autoindent and postbreak in the package listings

I am using the package listings to show my Matlab code. The code was pre-typed in a file and everything will be loaded from the file and a .tex file will be generated automatically to show the code ...
3
votes
2answers
186 views

Shorthand for empty line or \\ \indent

This page says that \\ starts a new paragraph. However, it does not end up looking the same as inserting an empty line in my source code (which I have always used to define paragraphs), which also ...
6
votes
1answer
368 views

Avoid putting statements on the same line with algorithmicx

I'm writing a simple pseudocode, but I have a problem with a repeat..until block. Basically what happens is that the return statement that follows the end of this loop gets rendered on the same line ...
6
votes
1answer
376 views

Adjust the indentation whithin the algorithmicx-package when a line is broken

I have this code \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm} \caption{Minimal Working Example for my Problem} ...
10
votes
2answers
504 views

No indentation after empty line

Indentation can be selectively suppressed using \noindent or completely with the option parindent=full to the KOMA document classes. Books (fiction) are usually structured using paragraphs, indented ...
5
votes
2answers
813 views

Mutliple inputs with line breaking

I am trying to write an algorithm with multiple inputs in algorithm2e. The result I would like to have is something like Algorithm ------------------- Input: Input number 1 Input number 2 ...
6
votes
4answers
318 views

Within a single paragraph, hang a wrapped line, but do not hang new lines

I'm writing a list, and would like the line hanging to work like this I do not want to use separate paragraphs for each item in the list, and I do not want to use the list environments; I will be ...
2
votes
1answer
2k views

Left margin flush for itemize's item labels in LaTeX

I am trying to get the item label to flush with the left margin of the page width within itemize, i.e.: This is my sentence. Here are my items: ITEMNAME notice my list definition is indented ...
5
votes
2answers
4k views

New line and no indent after \paragraph?

I tried to use a \paragraph-environment, but I do want a new line after the title and no indent in the first textline. New line is easy, but the first line is indented even if I use \noindent, ...
2
votes
1answer
1k views

Loop conditions in multiple lines using algorithmic package

I am working on a paper in double-column format, and I am using the algorithmic package to typeset my algorithms. One of my while loops' condition is a bit long hence doesn't fit into the column. ...
13
votes
3answers
3k views

Include a line break in algorithmic while maintaining indentation

I have this code: \DeclareCaptionFormat{algor}{% \hrulefill\par\offinterlineskip\vskip1pt% \textbf{#1#2}#3\offinterlineskip\hrulefill} ...
0
votes
3answers
1k views

Why gap + indent after \\ and [return]

I'm using TeXLive (pdftex) with TexShop on my Mac and usually, I don't format my .tex files. Now that I have to write some bigger ones, the code soon gets too messy to read and I tried to insert some ...
2
votes
1answer
6k views

New line in math mode and indent this line

How can I have a indented new line in math mode? The line after \newindentedline should be indented and start in a new line. \[ X \subset Y \Rightarrow \forall x \in X: x \in Y \newindentedline ...
3
votes
2answers
1k views

Change style of printing acronyms with glossaries package

I'm using the glossaries package to define my acronyms and print them out. I'm using this style: \newglossarystyle{super3colleft}{% \renewenvironment{theglossary}% {\tablehead{}\tabletail{}% ...
5
votes
2answers
7k views

TOC line indent and break problem

I have long chapter and section titles in my document, so titles in the table of contents do not fit into one line. I have two problems regarding with this: When the second line starts, i need to ...
6
votes
2answers
2k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...