{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

6
votes
3answers
2k views

Typesetting sparse matrices with long entries

When typesetting a (square) matrix with arbitrary dimension but repeated entries (in particular null entries), I make use of the \cdots, \vdots and \ddots commands. When the entries of the matrix are ...
2
votes
1answer
218 views

Comment in a box and reference abilities

I am aware in Latex you can box text, which is what I need to do. However can you also label this box for reference, and similarly give it a caption, like you would for a photo? An example of boxing ...
1
vote
2answers
308 views

I want no idention after \newpage

I defined with \parindent=0cm that there should be no idention after new paragraphs. But the very first \chapter and every \newpage is idented! I don't want to have that, so how can I work around? ...
4
votes
1answer
79 views

Double index in the same documents

I have a question about a problem that I am facing. I have a document composed by two different and independent parts in two where the second parts refers to just some elements of the first one. Both ...
5
votes
2answers
395 views

Converting all numbers in document to set number of decimal places

I have a table which I need to automatically format all numbers to two decimal places. Is this possible? Or do I need to format the entire document? EDIT: I have applied the code suggested in an ...
12
votes
1answer
387 views

How does one implement drop caps in plain TeX?

How might one implement a simple drop cap in plain TeX without additional packages?
2
votes
1answer
151 views

Creating table of images and only one col having one picture to span all rows

I am just adding lots of images into latex and although I know how to apply images to a table, this one is slightly tricker. I have two columns. The first needs a single image which spans all rows, ...
5
votes
2answers
443 views

How can I align some text with a logo?

I am trying to right-align some text with a logo, i.e. I would like to place some text to the left of a logo, and centre this text vertically with respect to the logo. I’ve attached a pdf to be more ...
5
votes
1answer
5k views

In Lyx, how to change the “Part” section to “Chapter”?

I am using the default Lyx document "article". My sections range from "Part" to "Subsubsection". When I compile my pdf, I would like to replace "Part 1 Title1", "Part 2 Title2", etc by "Chapter 1 ...
8
votes
4answers
397 views

Document layout, combining text and figure panels

This is a question so general, I couldn't easily find an archived post which directly addressed it. I am interested in using LaTeX to design a one sided sheet containing figures and small amounts of ...
8
votes
2answers
3k views

How to style equation label and reference differently? [duplicate]

Possible Duplicate: Changing the apperance of equation numbers with amsmath I need to be able to make the labels of equations bold, but at the same time I need the citations to those ...
5
votes
1answer
2k views

\spacedlowsmallcaps in caption label

How i can make the labelfont also in \spacedlowsmallcaps in addition to sans serif and small ? \documentclass{article} \usepackage{microtype} \usepackage{caption} ...
1
vote
1answer
787 views

Using a new environment to make a title bold, large, in a different font, and red [closed]

I have what I thought was a simple thing to do in latex. I need to take several titles and make them LARGE,bold face,in Bookman font, and red in colour. Is the easiest way to accomplish this to use a ...
6
votes
1answer
4k views

How does \headline work?

I understand that TeX uses \headline to place headers. If \headline did not exist, how would one implement a simple version of the same? Additionally, where might one find simple documentation of ...
15
votes
1answer
691 views

A center environment for plain TeX

In TeX, one can center a single line of text with \centerline. How would one implement a center justification environment for a single long line of text in plain TeX without the addition of any ...
11
votes
2answers
420 views

Non-trivial table in LaTeX

I want to convert this OO table into latex: This is what I have so far: \begin{table} \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|} %p{4cm} \hline \multicolumn{7}{|c|}{Czas ...
5
votes
2answers
966 views

How to save and restore chapter's heading format

I am writing my thesis using a template provided by the university. It requires using the report class. To format the headings in the front matter, it uses the titlesec package and redefine the format ...
6
votes
2answers
202 views

How do I create this text delimiter?

I want to create a delimiter between two regular paragraphs of text as in the end of page 6 of this pdf. One way out could be the Vmatrix environment but then I dont know how to make the right ...
1
vote
1answer
801 views

Removing horizontal lines from the header and footer of the title page

I intend to set two blank pages before my thesis title page. However, the workaround I use does good job for the first page, but introduces horizontal lines in the title page (there were "text ...
8
votes
1answer
550 views

\newcommand defined for declarative formatting works for \it but not \textit or \emph

I defined this \newcommand for binomial genus/species names, which should be in italics: \newcommand{\taxon}[1]{{\it #1}} For whatever reason, it only renders the relevant text in italics if I use ...
1
vote
0answers
65 views

How To Format an Index Alphabetically in LaTeX [duplicate]

Possible Duplicate: Index with an initial letter of the group Code: \documentclass{article} \usepackage{index} \usepackage{lipsum} \makeindex \begin{document} \section{\index*{Hello ...
4
votes
1answer
1k views

Problem with titleformat: Don't want Chapter Style to be Applicable on Table of Contents & Bibliography

Please consider the following code: \documentclass[11pt,twoside,openany]{book} \usepackage[svgnames,x11names]{xcolor} \usepackage{wallpaper} \usepackage{changepage} \usepackage[explicit]{titlesec} ...
6
votes
2answers
696 views

Problem with \renewcommand in LaTeX

Please consider the following code: \documentclass[11pt,twoside,openany]{book} \usepackage[svgnames,x11names]{xcolor} \usepackage{wallpaper} \usepackage{changepage} \usepackage[explicit]{titlesec} ...
6
votes
1answer
4k views

Edit a default latex/beamer theme to show section numbers

I am using beamer to create a presentation. The theme I chose is Singapore. It has a nice header with section names and bullets for subsections. What is the easiest way to modify the header so that ...
6
votes
2answers
1k views

Is it possible to change text color for all headings?

I want to change only the color (not font size, etc.) of all headings in my documents (\section, \subsection, \subsubsection, ...). I want to keep all other settings fixed. Is there a way to do ...
7
votes
2answers
2k views

Two figures side by side with text wrapping

I have a problem with text wrapping around two figures side by side, each of which has a different height. Look at the required template below. Currently I placed two pictures with minipage ...
6
votes
1answer
451 views

Biblatex \autocite in case of would-be nested footnotes

I have the same situation as the following user: biblatex: Enhancing \autocite in case of would-be nested footnotes I want to use \autocite within a \footnote. This results in the citation being ...
9
votes
1answer
4k views

How to create Bullet-List with Fancy Bullet Shapes?

Can somebody please provide some hint on how to achieve the following 2 types of bullet-lists? Type-1: [Diamond Shaped Bullets] Type-2: [Round Shaped Bullets]
4
votes
1answer
765 views

How to create a Fancy Notes-Box in half of the Page along with text

I can draw the following type of Notes-Box: Can someone please suggest me how to draw this type of Notes-Box: The second one is different from the first one in 2 ways: We can add text below ...
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
858 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
304 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
960 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
878 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
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
532 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.