{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

learn more… | top users | synonyms

5
votes
1answer
214 views

how to draw part of the picture to be line and the other part to be the “\leadsto” symbol

Please refer to the answer of how to draw arrow that looks like the symbol "\leadsto" in latex? in the picture all lines are changed to the \leadsto: Now i want to keep the connector ...
0
votes
1answer
2k views

how to put two pictures side by side?

I try to put the two pictures side by side using the following code, however, the size of the two pictures are very small like the picture. However, the picture looks like if I don't put them ...
7
votes
2answers
2k views

problem with moderncv and \bf inside bibliography

I've this problem using moderncv. I'm using multibib and the first bibliography entry is: @article{Aad:2011tw, author = "Aad, Georges and others", title = "{Measurement of the ...
12
votes
3answers
1k views

Reusing LaTeX code to achieve a consistent layout

What is the best approach to reusing the same layout for numerous tables, paragraphs etc. which share the same structure but different content? Is the best method to use custom commands/macros?
3
votes
1answer
533 views

ToC width, small \MakeUppercase font in a header, dots next to chapters

How to get ToC widther? 1a. How to get ToC higher? [more space under the chapter, before a next chapter] How to add dots next to the chapters? How to put on odd sides name of current chapter but ...
7
votes
1answer
214 views

Page Number Spacing Issue With Titletoc

I'm new to LaTeX and I could use a bit of help. I'm using the report class and I'm trying to color the chapter headings a green I have defined. I don't really want to change the default formatting, ...
7
votes
1answer
2k views

Cross reference formatting options

I have got a quick question; I am writing a document with lots of sections and figures. Cross referencing works fine. So far so good. However, I would prefer when I reference something to have the ...
24
votes
1answer
2k views

Book layout Contents, Chapter, Section,

my goal is to get new style of Table of Contents, new style of Chapter and new style of section. I there is one more: how to change itemize native symbol for a black square? Table of Contents: text ...
15
votes
2answers
328 views

Replace all spaces with hyphens

It is good practice for legal documents to have hyphens instead of spaces so nobody can add anything to a contract after signing it. E.g. ------------------------------------------ ...
6
votes
3answers
7k views

Upper and lowercase of a word in the \section heading

I'm using the \section command and wanted to change just two letters of a word to be in lowercase. How can I accomplish this? I have tried using \small command but it will not change it. ...
5
votes
1answer
3k views

Best way to show terminal and cmd commands

I want to show terminal commands as well as command prompt commands (windows) and was wondering what is the best way to format these in latex.
12
votes
3answers
3k views

University's logo

How to put the logo before the date and after my name in the title? I write it as \begin{document} \title{} \author{} \titlepic{ \includegraphics[width=0.5\textwidth]{logo} \date{} but ...
13
votes
2answers
756 views

Automatically bold first sentence of a floats caption

How to bold automatically the first sentence of the float caption and second sentence is normal? \begin{figure}[t] \centering \caption{First sentence. Second sentence.} \end{figure} Output should ...
3
votes
1answer
2k views

titlesec section font size incorrect

My dissertation requires the section title to be of the same font size as the text. I am using the titlesec package and I have provided these options: \usepackage[rm,tiny,center,compact]{titlesec} ...
2
votes
2answers
4k views

how can I add a custom subject line below the \opening section of in scrlttr2 doc?

I'm struggling with my first latex project and I need to add a subject line, and make it bold, below the opening salutation in letter. Any help much appreciated
7
votes
1answer
845 views

Programatically style words/sentences/paragraphs based on arbitrary metrics?

It'd be nice to be able to style words or sentences or subsections based on arbitrary metrics. For example, it might be useful to highlight words based on their length - bolder highlighting for longer ...
11
votes
1answer
17k views

LaTeX: splitting the words

I have a quite long text, and I sometimes I have words breaking in a weird way, so I wonder if there is some command in LaTeX which will prevent the splitting of words in the whole document?
9
votes
1answer
2k views

Index with an initial letter of the group [duplicate]

Possible Duplicate: package makeidx: print first letter for each group of keys I'm trying to adapt the index of my contribution such that each group of words (starting with the same letter) ...
8
votes
2answers
5k views

How to make a code fragment in ieeetran class

What I wish to achieve is rectangle around code, with code in the font format as shown. How should I achieve this format?
20
votes
2answers
19k views

Code Snippet IN Text [duplicate]

How do I show a code snippet directly in my text? I dont want to have an extra box for it like lstlisting or verbatim provide it. My example may should look like this: The class List.class is... ...
5
votes
2answers
195 views

Break after arrow

The length of formula in attached code is getting too long, I would wish to break it short. I try to insert a break after the \rightsquigarrow by failed. How should I insert a break? ...
0
votes
1answer
498 views

Defining a listings style and available options

When defining a style for a listings environment, I can set the background color by doing: \lstdefinestyle{highlight}{ backgroundcolor=\color{orange} } Apart from backgroundcolor, which other ...
4
votes
1answer
832 views

caption setting, bolded figure and table, and single spacing without caption package

These limitations and difficulties I face because I couldn't use caption package. If I add \usepackage{caption}, I couldn't preview my document.. I'm using BaKoMa TeX. There are a lot of bugs which is ...
6
votes
1answer
355 views

Enable automatic hyphenation for Cthulhu-style's document

This question is based on the following thread: How do I make my document look like it was written by a Cthulhu-worshipping madman? ,where doncherry has provided a nice answer with the highest rate. ...
22
votes
3answers
878 views

Why are text format commands used inside braces?

Most commands in Latex are written with the arguments inside braces following the command: \command{arguments}. But text formatting options, like \em, or \scriptsize are usually written inside the ...
9
votes
1answer
2k views

Formatting for body of \item in itemize/enumerate/description environment

What I am looking for is a way to specify some formatting, say italics, for the body of each \item in an itemize/enumerate/description environment, up front, without having to do it explicitly for ...
4
votes
1answer
2k views

Using \emph in a Tikz \tikzstyle environment

very new to latex and Tikz. This is my first question on Tex (or any site) so apologies in advance for any mistakes or discourtesies. I'm trying to put together a process flow graphic using the code ...
6
votes
1answer
1k views

Enumeration in theorem environment

I am puzzled with a formating question. I was asked to change that the enumeration gives me italic numbers in the theorem environment to non-italic ones. How can customize enumeration, such that it ...
5
votes
3answers
486 views

Citation within caption => avoid italics (biblatex)

In my document, the captions are set in italics. I use a customized biblatex author/year citation style. If I \cite within a caption, the citation is set in italics as well. How can I avoid that?
3
votes
1answer
350 views

Table of contents broken with Koma Script and lstdoc

There seems to be some negative interaction between Koma Script (using version 3.11a) and the lstdoc package in my example document. The MWE works nicely when I comment out \usepackage{lstdoc} but ...
6
votes
2answers
234 views

separate style and content in table

I am generating tables from a program and its a bit inconvenient that I have to intersperse style and content information. For example, in the following note how \cellcolor{red} is interspersed among ...
3
votes
1answer
224 views

New environment. Highlight content with symbols and indentation

I'm writing my thesis and I want to highlight some part of my text which resides in a separate paragraph. I like the well-known example of \newenvironment{king} {\rule{1ex}{1ex}\hspace{\stretch{1}}} ...
9
votes
1answer
18k views

Add additional text on title page

I want my title page to look like this Title Author Date Coordinator1 ...
10
votes
1answer
3k views

How to typeset the formatted counter in compactenum (paralist)?

I am using the compactenum environment from the paralist package, and would like to know how I can typeset the counter. What I mean is \begin{compactenum}[a)] \item I would like to typeset "a)" ...
5
votes
3answers
4k views

How to display e-mail addresses for multiple authors in Beamer?

I have a Beamer presentation with multiple authors and I would like their e-mail addresses to be displayed underneath each author name. The post Email field in beamer class? is simple enough to do for ...
0
votes
0answers
44 views

change style of all same objects in LaTeX [duplicate]

Possible Duplicate: Change color and background behind text of all 'description' environments How I can change style of all same objects in document? For example, \description {} ...
1
vote
1answer
1k views

Getting the Proper Format

I have to submit a thesis in a proper format. What I need to do is have the left margins be 1.5 inches, every other margin 1 inch. I also need the page number to be in the upper right corner of ...
7
votes
1answer
3k views

Title page oddly centered

I have to insert the cover page of my thesis as a title page, so it will also move from the center of the page to openright, I guess. The titlepage code is this: \begin{titlepage} \begin{center} ...
0
votes
1answer
317 views

Help formatting table of contents, left margin numbers, again

I would like to modify the answer that I got in this thread here such that I have the subsection numbers in the TOC but not in the text. I do not completely understand the workings of the code I was ...
1
vote
1answer
93 views

formatting and display of complex text that is not supposed to be mathematical

I have been messing around with these two sections for awhile now and I cannot seem to get them to compile correctly. Both are complex in terms of the symbols used and the fact that I believe Latex ...
2
votes
1answer
121 views

Making cut-out fliers in LaTeX

I'm creating fliers to hand out, but I don't want to use a full sheet of paper for each flier... I'd like to use my existing .pdf, shrink it down, and perhaps get 4-8 copies of it per page so I can ...
8
votes
1answer
2k views

Two plural forms for acronyms

Is it possible to have more than one plural form for acronyms? I want to use the following german term for revision/version control system: VVS for Versionsverwaltungssystem the normal plural would ...
2
votes
2answers
136 views

Parenthesis destroy line formatting

I have just started using Latex. Here is the Latex code: \rightarrow (a, b). The virtual and here is the outcome. What is causing this problem and how do I fix it?
2
votes
1answer
98 views

Placing a .pdf file in the center with \multirow

The following is my code \begin{sidewaysfigure} \centering \scalebox{0.9}{\begin{tabular}{c|c|cc} \emph{}&\emph{a}&\emph{b}&\emph{c}\\ \hline \rotatebox{90}{text}&\multirow{2}{*}{ ...
3
votes
1answer
4k views

Making scientific table with AASTex package - is there a better option?

I really like the formatting of tables offered by the AASTex package. AASTex Generator But it is not quite what I need in terms of flexibility. Here is some code for a table I am making. I don't ...
10
votes
2answers
3k views

How to define inparaenum in the preamble

I'm using both \inparaenum and \enumerate in my thesis and I would like them to set them in the preamble so that each item is set off with a). I used \setenumerate[0]{\itshape a\upshape)} in the ...
2
votes
1answer
2k views

Changing theorem/lemma… label to bold italics

For theorems in my contribution I use \theoremstyle{plain}. This style prints theorem label in bold italics, eg. 'Theorem 1.', which is followed by text in italics. How could I set 'Theorem 1.' to ...
2
votes
1answer
204 views

How to add newline while using everyline in mdframed?

I am working on mdframed and found solution of using mdframed on multiple pages by using everyline but it new box has no margin or newline. So it starts from beginning which looks odd? ...
4
votes
2answers
9k views

Changing the subfigure caption by removing brackets & font of the subcaption

Note that by using \usepackage[bf]{subfigure} I'm able to change the label of the subfigure to be boldface. However, the label appears with brackets, e.g., "(a)". How could I get a subfigure label ...
15
votes
2answers
37k views

Adjusting column width in LaTeX with the multicol package

I'm trying to get a two column "academic style" paper layout on my LaTeX paper. I'm aware there are at least two common ways of doing this, either with adjusting \documentclass or with the more ...