{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

13
votes
2answers
1k views

How to create Multilevel Colored Boxes using tcolorbox/any other package?

tcolorbox Manual provides the following example: Can anybody please suggest me how to create exactly this type of box - The no. of rows to add must be flexible(It seems that tcolorbox has no option ...
11
votes
2answers
3k views

Footnotes layout in multicols environment

I am using the package multicol to typeset a one-column (spanning the entire text width) heading and a two-column main text block. In order to do so, I begin the multicols environment along with the ...
13
votes
2answers
4k views

Is it possible to italicize journal names and book titles through the .bst file?

I am working on an article for a Springer journal, and the specifications for manuscripts clearly ask to italicize all journal names and book titles. Doing it manually feels stupid, so I wonder if ...
1
vote
0answers
40 views

Need Help to create a Fancy 'Key-Idea' Box for Article [duplicate]

Possible Duplicate: How to create Highlight Boxes in LaTeX? I am writing an Article. I am trying to create a 'Key-Idea Box' like the one shown below: Can somebody help me creating a ...
6
votes
1answer
851 views

How to create Fancy Title Headers

I want to create a Fancy Title Header for an Article, like the one shown below: Can someone please provide some hint on how to achieve this?
20
votes
3answers
4k views

How to Create Comparison Tables in LaTeX?

I am a new user (both to LaTeX & this forum). I want to create a Comparison Table for an Article (like the one shown here): Can someone please help me with this.
1
vote
1answer
1k views

How to use makebox in LaTeX

I try to use \makebox around the word, however, all text in the same line, why? Here is my code, would someone help me? ...
2
votes
1answer
302 views

LaTeX like Math.SE

I quite like how the Mathematics Stackexchange site's LaTeX looks, and I know that they have a LaTeX functionality by running MathJax on the site. What fonts/packages are available to achieve this ...
3
votes
1answer
953 views

vim type Display for C Code in Latex

Target Display: My Latex Code: % xxxxxxxxxxxxxxxxxxxxxxxxx Code Snippet STARTS xxxxxxxxxxxxxxxxxxxxxx \lstset{ language=C, % choose the language of the code stepnumber=1, ...
6
votes
1answer
867 views

How to Format C Program Code Block Nicely

I am using the following settings to format my code blocks: % xxxxxxxxxxxxxxxxxxxxxxxxx Code Snippet STARTS xxxxxxxxxxxxxxxxxxxxxx \lstset{ language=C, % choose the language of ...
5
votes
1answer
213 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
526 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
326 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
741 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
842 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
16k 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?
18
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
495 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
823 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
869 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
482 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
349 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
223 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
17k 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
309 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 ...