{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

63
votes
7answers
7k views

How to add some visual style and pizzazz to course notes?

LaTeX is wonderful for writing mathematical papers, but while the output is perfectly typeset it is not visually very exciting. And although it may just be "familiarity breeds contempt", I am ...
5
votes
1answer
2k views

Biblatex: How to insert dots into abbreviated journal names in bibliography

For example: "Philos Trans R Soc" should become "Philos. Trans. R. Soc."
27
votes
1answer
4k views

How to place a shaded box around a section label and name

In working with a publisher, I need to format section headings like this (using ASCII art): +-----+-------------------------------------+ | 1.2 | Section name | +-----+---------...
5
votes
2answers
2k views

List of symbols with glossaries — problem with using \underline

I'm having a weird problem with glossaries (TeXLive 2011, glossaries v3.01), illustrated by the following example: % compile this with % pdflatex example.tex % makeindex -s "example.ist" -t "...
13
votes
3answers
8k views

Two column code listings in appendix in a one column report

How do I place a two column appendix in a single column report? I want it so that at the beginning of the appendix I'm in single column mode, then I want to place some source code listings in 2 column ...
5
votes
1answer
7k views

Fortran syntax highlighting in listings

I've got some Fortran 90 source code I want to put into my thesis appendix. For this I'm using the listings package. Is it possible to have colored syntax highlighting for the Fortran code?
5
votes
2answers
511 views

Two column trouble - positioning of figures and text

I have following trouble in LaTeX and I need some help. I am preparing a document which has this TeX code: \documentclass [12pt]{article} \usepackage{graphicx} \usepackage[usenames,dvipsnames]{color} ...
5
votes
1answer
251 views

Changing the font for a custom environment

I can't figure out how to embed a command like \textbf or something in a newly created environment, I have: \newenvironment{definition} {\begin{quote}} {\end{quote}} I want to customize my ...
30
votes
2answers
48k views

set the font family for lstlisting

I have the following set up for my listings : \lstset{basicstyle=\footnotesize,breaklines=true} \lstset{framextopmargin=50pt,frame=bottomline} I would like to change the font family to Courier. ...
7
votes
1answer
12k views

Setting font family for the whole document

This looks like the basic question but it seems like the hardest thing to me. I need to set the whole document's font style as follows : Font Family: Times New Roman or GoudyOlSt BT Font ...
4
votes
3answers
332 views

How to typeset my research publication?

I have the content for a small research publication ready. I have noticed that the formatting of most of the research papers looks the same. How can I quickly convert my text to a research formatting?...
52
votes
6answers
10k views

Make one author's name bold every time it shows up in the bibliography

I'm working on a CV. I'd like to highlight my name in every entry in the bibliography. I've tried simply replacing {myname} with {\bf myname} or {{\bf myname}}, but they fail with various errors, ...
5
votes
1answer
748 views

Can you invoke stylizing commands in a .bib-file when using the BiBLaTeX apa package?

This question has been heavily rewritten. That's why some of the comments and answers might be a little bit odd (they were responses to earlier versions of the question). I'm using the BiBLaTeX apa ...
5
votes
1answer
5k views

Easily aligning 'from' and 'to' address fields in LaTeX letters

When you write a letter in LaTeX, you can add your address with the \address block, while you have the possibility of adding the recipient address after the \begin{letter} statement as an extra ...
6
votes
1answer
8k views

Color text in LyX?

I'm trying to color specific text in LyX, wondering how to do that with the graphical user interface (shortcut or something of sorts).
18
votes
4answers
579 views

Frame with only crosses in two opposite corners

Is there one package to produce frames looking like the one above in the following ASCII example ? I don't want dashed lines. | ...
5
votes
2answers
576 views

An improved \rowstyle that takes the cell contents as an argument

It is possible to format the column entries of a tabular in an argument-style fashion using the lrbox environment to store the column cell in a box (say) \mybox; and supply \mybox as an argument to ...
5
votes
3answers
5k views

A step by step environment

I would like to obtain the following output : Bla, bla, here are the actions to do. Action 1 Bla, bla, bla... Action 2 Bla, bla, bla... Action 3 Bla, bla, bla......
1
vote
2answers
659 views

How to let glossaries display “long form (abbreviation)” in the list of acronyms?

This is a pontentially dumb question, but I fail at making glossaries print the long form accompanied by the abbreviation in the list of acronyms. Let this be the document (should be self-contained): ...
6
votes
1answer
706 views

Remove italic from memoir headings pagestyle

I am using the memoir class for my thesis and I'd like to stop the headings from being italic in the page headers. I am using the headings page style, I found out how to remove the uppercase heads ...
8
votes
1answer
5k views

fancy chapter heading for a book

I would like to change the default chapter heading formatting of book document class. How can I output something like below :
17
votes
3answers
5k views

Print integer without fraction part

In a Tikz Figure, I'm doing some computation and want to print results as label of nodes. The problem is that I only need the integer part of the number to print. I tried with round() function. It ...
9
votes
2answers
815 views

Change the behavior of carriage return

Define an enhance verse environment, where stroke Carriage return key once make a \\, twice make a \par, three times make a \medskip, four times and more make a \bigskip. An example would be: \begin{...
7
votes
1answer
3k views

How to format the references heading when using multiple bibliographies

I have what I hope is a simple question. I finally figured out how to get the multiple bibliographies to work (mostly) like I want it. The one additional formatting thing I would like is to make the "...
10
votes
2answers
4k views

Equivalent of CSS “float:left;” for images

What I am try here is have the image on the left side and it should be surrounded by text on the right and bottom side. For example how can below image_3.png float to left? \usepackage{lipsum} \...
11
votes
1answer
2k views

Independent left and right columns

I'm trying to write something with two columns that spans multiple pages. I want to put one thing in the left side and one in the right side. Is there ``proper'' way of doing this, or should I just ...
4
votes
1answer
316 views

Distribute evenly some formula or text randomly on a page

Suppose you have n variations of a small text or a formula like this: % Formula 1 \begin{align} v(t_o) = \lim_{h \to 0} \frac{v(t_0 + h) - v(t_0)}{h} \end{align} % Formula 2 \begin{align} ...
3
votes
1answer
3k views

Change Text Colour in LyX

I am using LyX (module: report). I would like to change the colour of my title from black (wich is default) to another colour but I don't know how. From what I saw from LyX's menu, colours are ...
2
votes
2answers
149 views

Need to change how \pagenote typesets the note number

I'm trying to get the pagenote package to display the note numbers as \textbf{ \blue{ \big[ \roman{ notenum } \big] } } I've redefined the \notenumintext as follows: \renewcommand*{\notenumintext}[...
2
votes
0answers
8k views

LyX — how to insert a dummy newline? [closed]

I have some Algorithmic sections, which are written externally in LaTeX and included as file includes in my LyX document. The algorithmic section renders with line breaks before and after, but appears ...
32
votes
1answer
2k views

Adding a per-chapter image along with group of entries in ToC

Friends, I have an old analytic geometry book with an unusual table of contents: for every group of entries based on the current chapter, there is an image along with it. Well, let me show some actual ...
1
vote
1answer
275 views

What is the best way to setup this statblock as a macro?

I'd like to get a macro setup for this statblock format. Basically, I will be converting an XML document containing the data for the instances within the document. This is a sample of the format I am ...
3
votes
1answer
178 views

Show text exactly how it is displayed in the text document

I have the following bit of text that I want to show : A = 9 -8 7 6 -5 -4 3 -2 1 I want to show it exactly as it is, i.e. no formatting. Currently it shows : I ...
37
votes
2answers
18k views

number format in pgfplots axis

How can I change the type of the decimal/thousand separator from the american one to the european one? More precisely, I want: "1000" to be written as is, instead of "1,000" "0,1" instead of "0.1"
20
votes
4answers
1k views

What measure can we use by LaTeX to control the print budget

I found there are so much excellent answer to questions about how to product high quality typesetting output. But I wonder how to save ink with LaTeX. What we need to think about to manage cost. page ...
5
votes
3answers
5k views

How do I insert a border below text?

I want to emulate a feature from a few word processing programs (e.g. Microsoft Word, LibreOffice Writer) where I could (somewhat) arbitrarily insert a bottom border below any text/paragraph. How can ...
5
votes
1answer
668 views

How to automate a dictionary (sorting, headers)?

Here is a piece of solution to automate a dictionary using the links given in the first following comments. There are two problems to solve : When one definition starts on one page and finishes on ...
34
votes
6answers
6k views

How to output a counter with leading zeros?

I can output the value of a counter in a LaTeX document via: \setcounter{mycounter}{1} \arabic{mycounter} Which inserts a 1. But how do I format the output by, for example, adding a leading zero if ...
0
votes
1answer
961 views

Changing the chapter style [duplicate]

Possible Duplicate: How to format the chapter heading? How do you change the style and margins of the chapter title in latex? I'm looking through the style file and can't find anything.
15
votes
5answers
4k views

How to use siunitx with non numerical values?

I understand that something like \SI{5}{\meter\per\second} defines a certain space between the number (5) and units (m/s). What should I use if instead of a numerical quantity I want a variable: R m/s?...
49
votes
4answers
44k views

Footnote without a marker

I am new to LaTeX. I am trying to write a paper using latex. I want a footnote about the funding source of my work in the first page without marker. I tried below approaches: \footnotetext{text ...
0
votes
1answer
748 views

Display FASTA File in LaTeX [closed]

Is there a proper way to show a FASTA file in LaTeX? So far I tried $'s or listings and TeXshade but this does not seems to work.
4
votes
1answer
318 views

figure/table caption formatting without packages

I am writing a document which needs to have tables and figures. Normally for formatting the caption of figures/tables I use \renewcommand{\@makecaption} But it affects both tables and figures ...
8
votes
1answer
1k views

Change nameddest default name

Adobe defines parameters that allow you to open a PDF document with a command or URL that specifies exactly what to display (a named destination or specific page), and how to display it (using such ...
4
votes
1answer
2k views

Edit page headers

I am trying to edit my page titles with fancyhdr package. I want the top left of the page to present [section number]. [section name] in boldface and small caps. for example: 3.2. PYTHAGORAS THEOREM ...
5
votes
2answers
4k views

Switching between single- and multi-column format

I'm trying to create a pdf for a journal where the authors are in multiple column format but the rest of the document/text is not. How can I get this to work? It auto formats the rest of my document ...
9
votes
1answer
666 views

How to create a good document structure in advance for a book to be typeset using sanskrit fonts

I am taking up a task for typing an old text which is over 1200 pages. I am attaching a sample page. I am new to TeX, I still did not get the hang to create a good structure so that it will give me ...
9
votes
4answers
2k views

Addition and subtraction of chemical equations

Is there a package that supports the addition or subtraction of chemical equations, perhaps with automatic tabbing and a alignment. Whilst it is obvious I could set up tables or use mathmode's align ...
8
votes
2answers
176 views

mhchem formatting interrupted

\documentclass[12pt,a4paper]{article} \usepackage[version=3]{mhchem} \begin{document} \ce{K_a \times K_b = K_w} \end{document} In \ce{} all text is supposed to be regularized. See how the K_a is ...
127
votes
5answers
8k views

Consistent typography

When working with large documents, or even across multiple (smaller) documents, I often find that I forget which typographical consistencies I should stick to. With TeX being inherently consistent in ...