{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

4
votes
3answers
609 views

How can I draw a table where the upper left corner is missing? (Pic)

Is it possible to draw a table like the one in the attached picture? I've read documentation on the tabular environment but nothing really describes this well. The shading would be nice but the ...
15
votes
2answers
798 views

Why are these commands considered as bad practice?

I was reading LaTeX: Do not use these commands, but the author didn't explain why they are bad. Could anyone help me understand. \\ (except inside a special environment like tabular, array, or ...
4
votes
3answers
2k views

Bold one cell in table using CSV reader

Is it possible to bold a single desired cell (or number of cells) using csvreader (besides the head)? Here is an example of making the table. \documentclass{article} \usepackage{csvsimple} % Make ...
5
votes
1answer
325 views

Remove Formatting in Table of Contents

I have custom colouring in the section headings, i.e. \section{\textcolor[red]{Heading}}, so when I use \tableofcontents it prints the table of contents including all the unnecessary colouring. Is ...
2
votes
1answer
1k views

How do I create a variant of the snugshade box from the framed package to wrap my definition environments in a blue box?

I'm already using snugshade to wrap my theorem environments in a grey box, but I'd like to have another bounding box just like snugshade to wrap my definitions in a blue box instead. Here is my code:...
8
votes
3answers
416 views

Want to add a string left of “Figure” in caption

Ok I need to redefine caption and probably some other things to do something like \caption{code}{caption string} So when a figure is made (code) Figure #: caption string comes out code will be a ...
15
votes
4answers
1k views

Convert a novel typed in Word (just dialogue text,no math) to LaTeX

I know many of you will think this elementary - but I would like opinions. I need to know if I'm doing it horribly wrong before I continue doing 45+ chapters! I apologize if this isn't the proper ...
19
votes
1answer
4k views

How are amounts of money to be typeset?

Writing a letter to Americans, I have wondered how to properly typeset amounts of money. As far as I know, the $-sign is supposed to precede the number, but I am clueless of the rest. Here are some ...
7
votes
4answers
575 views

cleveref: configure symbol §/§§ for all sectioning types once time

I want to configure the section symbol § (singular and plural form §§) indistinctly for all types of sections (part, chapter, section, subsection, paragraph and so on). I use the cleveref package, but ...
2
votes
1answer
656 views

How do I make text to appear in multiple columns as in newspapers on Texworks?

How do I make text to appear in multiple columns as in newspapers on Texworks instead of rows?
9
votes
1answer
438 views

Reformatting LaTeX code after excel2latex

I use excel2latex to generate tables from Excel. The issue is that excel2latex generates really horribly formatted code with extra spaces, misaligned, etc. Does anyone have another solution to ...
2
votes
1answer
103 views

Modify tex file to move chapter headers upper

I'd like to modify this code to make chapter titles appear uppper, so more text can get into the first chapter page and modifiy the TOC adding dots from the title to the page number. How can I do it? ...
4
votes
1answer
197 views

putting the title in the header for an article

For various reasons, I need to put my name and title in the header of a LaTeX document. The reason is I have a page limit and need the extra space which is taken up by \maketitle. Does anyone know ...
7
votes
1answer
2k views

Is there an easy way to change the font and size for Chapter Heading in Memoir?

I'm a total TeX newb - please be nice! :-) How can I change the font and size of Chapter headings? I don't mind where it's placed on the page - but would like it to be a sans-serif font and perhaps ...
6
votes
2answers
3k views

Changing style of table caption

I'm using the \caption command inside \begin{table} command and in the output I'm getting: Table 4.1 - Caption Table Content Is it possible to change that style to something like this? ...
2
votes
1answer
183 views

Formatting a custom column in pgfplotstable

Following up on my question on PGF custom columns I've successfully created a column but now I'm struggling to format it to fixed, two digit precision. This seems a little hair trigger in terms of ...
2
votes
1answer
168 views

Redefine quotation mark usage

I would like to be able to manually redefine quotation mark usage, preferably without having to load an external package. Judging by the answer to How does TeX's mechanism for sorting out quotation ...
2
votes
1answer
94 views

How to know the re-formatted book is centered?

I have a tex file that I'd like to print into a paperback book using lulu.com. It is formatted into A4 format and I have done some fiddling with the formatting to get it into the format of a small ...
17
votes
3answers
1k views

Red squiggly imitation

Is there an elegant way to draw red squigglies under text, to emulate what a [source] code editor does when it detects errors (either spelling mistakes, syntactical errors or semantic errors)? Here ...
3
votes
1answer
385 views

Printing a single bibtex entry as enumeration item

I have a bibliography in BibTeX. However I need to report the most important literature I have written thus far. These three entries must be presented in the enumeration environment. Of course one ...
5
votes
1answer
512 views

How to change the font shape in the body of theorem environments?

\documentclass{article} \usepackage{amsmath,amssymb} \newtheorem{defn}{Definition} \newtheorem{pro}{Problem} \newtheorem{thm}{Theorem} \begin{document} \begin{defn} This is the first definition \end{...
3
votes
1answer
123 views

Formatting the bibliographic references

What should I change in order to make my bibliographic references (see latex code bellow), look like the ones attached in the form of image bellow? If you run the code you will see that only the ...
3
votes
2answers
313 views

cleveref counter and ref label number format with padding zeroes

I am using cleverref and a custom counter to typeset a special kind of reference, where I need the same text on the definition side and the reference side. Currently I use \textbf{F\arabic{...
11
votes
1answer
499 views

New list environment: automatic enumeration with “a posteriori” format

This is a follow-up question to Nested enumerate labels with parent label appended plus a single set of enclosing parentheses First and foremost, sorry for my English, I'm learning it currently. ...
4
votes
1answer
475 views

How to align \vrule partial vertical lines in a pgfplotstable

I had a look at this post on Misaligned multicolumn but it doesn't really solve my problem. I have the code below which is supposed to produce a table with a blue line for the first row and red lines ...
2
votes
1answer
768 views

How to change glossaries alttree: no bold font for second level

How can I modify the glossaries e.g. alttree style to not use bold fonts for the entries in second level. First level should remain bold. I'd like to do it like \newglossarystyle{mylist}{% \...
4
votes
1answer
2k views

Have a space after \texttrademark oder any kind of characters [duplicate]

Possible Duplicate: Spaces behind \textgreater not working as expected I am faced with the following problem. I write a document in which I refer to a registered brand and thus looks like "...
9
votes
1answer
201 views

Correct the size of < > in math mode?

I am using \left< and \right> to indicate the average in an equation. Unfortunately it looks quite strange in the following example, as the automatic size estimation is different for both sides ...
13
votes
3answers
2k views

Examples of list macros in plain TeX

I'm writing macros to typeset lists in plain TeX. Please can you suggest some examples of macros for numbered lists? I'd prefer examples from "living code", from CTAN packages and so on. But any kind ...
8
votes
2answers
552 views

Distinguish \nameref references in print version

I used the \nameref command to reference to names of captions etc. I also used the option colorlinks=true so I have colored references which can be distinguished form "normal" text. In my print ...
7
votes
1answer
188 views

Mimic a calculator screen

It was recommended that I post this as a new question. Sometime back, this marvelous solution was posted on this site. \documentclass{article} \usepackage{tikz,xparse} \ExplSyntaxOn \...
5
votes
3answers
258 views

Making tables more prominent

I am working on a long LaTeX document with several tables, which contain mainly text, or text and numbers. The tables are a \begin{table} ... \begin{tabular} environment. It is often difficult to see ...
6
votes
3answers
12k views

Formatting table border and text alignment in LaTeX table

I have the following table in the .tex file: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \centering \caption{Distribution of Number of Injured Non-...
33
votes
2answers
20k views

How to style text in hyperref \url?

I want to set color, font and similar style attributes for the text in a \url from the hyperref package. How do I go about doing it? All I have found are comments saying that I probably don't want to ...
9
votes
1answer
200 views

Align/avoid numeration and labels in a custom biblatex format

I need list references with a custom format, with a label showing the type of entry (@article, @book, etc.) and labeling fix/variable fields in a tabular environment. I have successfully obtained ...
3
votes
2answers
135 views

How to include a long underscore before the \question command?

i am working with a simple question but i can't include underline before the \question. Code documentclass{myclass} \newcommand{\line}{\begin{tabular}{p{2cm}} \\[-.35em] \hline \end{tabular} } \...
2
votes
2answers
4k views

Set default Koma script font to Times [duplicate]

Possible Duplicate: KOMA-Script: change font of sectioning headings to serif I am using scrbook document class but want to change the default font to Times. However when I add: \usepackage{...
5
votes
1answer
1k views

Formatting – title with underline and box around paragraph

Can you help me please with formatting? I like this format: How can I define this title with grey underline (width of all page)? Font is sans serif (Arial). And how can I make grey box around some ...
5
votes
1answer
2k views

bigger parentheses in equations

I have the following TeX equation: r = (I_n - (.85) M^T)^{-1} (\frac{1 - (.85)}{5}) \cdot 1 \\ I want bigger parentheses around the term (1-(.85)/5), how can I achieve this? How can I get large ...
10
votes
1answer
231 views

Putting marks for split footnotes

Say, that you have a footnote which is printed in page 1 and 2. How can you put a mark, say $\rightarrow$ at the end of the footnote text in page 1 and at the start of the footnote text on page 2, ...
4
votes
0answers
573 views

Is it Possible to Obtain Rudin-Style LaTeX Document Format? [closed]

I'm trying to obtain some format settings (or copyable code) for LaTeX documents. Above is a screenshot of Walter Rudin's Principles of Mathematical Analysis (a book I'm sure many people here have ...
6
votes
1answer
2k views

Outlined characters in Beamer

Following Outlined characters, you can make selectable outlined text using the contour package. For example, the following writes "Text text text contour text", with "contour" in green with a red ...
5
votes
2answers
920 views

Troubles with number formatting in groupplots

This question has already been answered for axis here but I have troubles to apply the approach to groupplots (please see %additional code in MWE). If I uncomment the %additional code the code is ...
7
votes
1answer
300 views

How to highlight important pages in glossaries page number list

In some books, the keywords page not only has a list of pages the keyword was referenced, it also bold or emphasize page numbers where the keyword was defined or explained. How do I do that with ...
8
votes
1answer
239 views

How do I adjust the placement of descriptions I've made alongside enumerated statements within a boxed theorem environment?

Basically, what I'd like is to have an elegant command that would enable descriptions (commutativity, associativity, etc.) made alongside enumerated statements to be aligned to the far right side of ...
4
votes
2answers
397 views

Font setup in header (ConTeXt)

I use \setupheadertexts [][section][chapter][] to get the section- and chapter-title in the header of the odd- and even pages. How to change the font, like its size, or making it bold or italic? ...
3
votes
1answer
772 views

pgfplotstable selecting numeric columns or multiple columns by index

Hi two questions in one: I haven't been able to figure out the answer from the manual: I have a table of data with strings in the first column: I'd like to apply some key-values (e.g. fonts by sign)...
0
votes
2answers
545 views

Formatting LaTeX-dump from Mathematica equations for A4-paper without manual adjusting?

I asked this question here in Mathematica.SE but they encouraged to ask also on this site. How can make this writing process easier from Mathematica to LaTeX? Please, note that I have a lot of ...
1
vote
1answer
2k views

Formatting apalike-url.bst link to reference

I am using apalile-url.bst to get APA references formatting, but I want to format the reference link when I am using a URL, for example when I reference a URL I get. this is a url reference [...
5
votes
3answers
279 views

Possible CSS type features?

Hi I am doing a project for my 10th grade Graphic design class and we have to make up an inspirational type thing with the emotion words Bold, in a bigger size and capitalized and I was wondering if ...