{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.
5
votes
2answers
358 views
Make one author's name bold every time it shows up in the bibliography (continued)
The solution provided here
Make one author's name bold every time it shows up in the bibliography
does unfortunately not work, as soon as the Author's name contains
special characters, e.g. Hans ...
2
votes
1answer
973 views
Grouped two column table of contents in Beamer
I am working on a beamer presentation with a quite large table of contents. Therefore I split the table into two columns with the following code:
\begin{frame}{Overview}
\begin{multicols}{2}
...
4
votes
1answer
342 views
Dynamically use RTF-Code in latex-document
I'm looking for a way to dynamically use Rich-Text-Format code in a latex document.
The background is this: I want to paste formatted programming-source from visual studio into my latex code because ...
0
votes
1answer
432 views
Change the background color in the title
I need to set the background color in my definition of the title but I don't know how I can do. I have the next definition:
\pretitle{\vspace{-90pt} \begin{flushleft} \HorRule \fontsize{20}{20} ...
2
votes
1answer
787 views
Italic citation reference for author name using natbib
I'm trying to get italics for the author name within the citation using natbib with agsm style.
My MWE:
\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@BOOK{Smith2011,
author = ...
3
votes
1answer
2k views
Synonyms for \bfseries and \itshape and such?
Seeing as it is quite confusing for non-TeX expert to know how to specify italic or bold font, and the names such as \bfseries are not straightforward...
Is there a package that defines synonyms like ...
0
votes
0answers
49 views
How to leave underscored white space? [duplicate]
Possible Duplicate:
Long underscore in LaTeX
I am not even sure if there isn't a proper typographical term for this thing. I use it for a questionnaire, where I have questions like:
I ...
6
votes
1answer
549 views
Code readability
I'm getting my head around LaTeX, and I find really awesome the fact that the documents are completely editable with a plain text editor, while getting a really neat and professional output.
I'm ...
2
votes
1answer
51 views
Auto including the section into an (pre-defined) environment
There is a coherency problem in the following text (its typesetting). The last paragraph must not be considered as a part of subsect02. For instance it is a kind of conclusion of two approaches ...
5
votes
1answer
936 views
Changing the font for “alert” in beamer
I would like to change the behaviour of \alert so that the text is still red but now boldfaced, say. How can I do this? I have Googled, but all I can find is how to change the colour, as in Changing ...
4
votes
1answer
230 views
How to add other info to the title page (e.g. class, professor)?
I am new to LaTeX and trying to write my first paper with it. I need help on the title page. I want something that says
Initial Planning Report
...
7
votes
5answers
1k views
I just want to have the text in my pdf the same way I have it in my editor
I want to paste from the clipboard a plain text copied from a text editor (line wordpad++, vim, notepad etc), and I want TeX to respect the same line break formatting that the editor has. This works ...
4
votes
2answers
969 views
TeX templates for mathematical articles
I'm currently trying to write an article on a method of finding infinite series for some known functions. However, I'm finding it very difficult to:
Get a good guidance on how to structure the ...
8
votes
5answers
603 views
How do I get function argument parenthesis to position correctly?
I'm having trouble with the appearance of parentheses representing function arguments. They appear to far away from the function name.
For example the code
...
1
vote
1answer
279 views
After notitlepage my abstract lost formatting
I've added notitlepage option to not get my page counter reset ( according to suggestion : http://tex.stackexchange.com/a/44955/7128 )
but my abstract lost formatting !
Now it has line spacing and ...
2
votes
1answer
724 views
Format nomencl in table style
For my thesis I wwant to format the nomencl in the same style as the rest. Simply put this means I want the nomencl to appear as follows:
Symbol Quantity Unit
t Time s
rest ...
5
votes
1answer
360 views
Listings language definition keyword suffixes
I'm trying to create a listings language definition for ARM assembly and many of the instructions have prefixes/suffixes (i.e. BGT, BLE, BNE, BEQ branch instructions).
Is there a way to define B with ...
3
votes
1answer
148 views
A way to change how the header of a AMS-LaTeX file is presented?
I'd like to change the way the header is presented in an AMS-LaTeX file... I based my file on testmath.tex.
First, I'd like to allow my header, or represented by \markboth, to show up in the first ...
14
votes
2answers
6k views
Math inside tables and formatting
I'm trying to make a little summary of mathematic analysis, useful for my university, in LaTeX. I'm stuck in the problem of creating nice table, with alternate colouring containing equations with ...
13
votes
2answers
502 views
What's the proper way to write a vector with a single character subscript?
I've always(-ish) thought that the proper way to typeset a vector which is labeled by a letter with a single character subscript, like v1, was to set the arrow over just the letter, like \vec{v}_1 (I ...
3
votes
1answer
683 views
How to replace a hyphen (-) with an en-dash (–) automatically?
I would like to set up my LaTeX (XeTeX) document in such a way so that I could type a hyphen (-, the one on the keyboard) and it would get replaced with an en-dash (–, the "longer" dash) in the ...
9
votes
1answer
565 views
Globally customizing the style of figure captions
Is it possible to globally alter the way figure captions are rendered? For example, I might want to wrap all captions in \textit to better distinguish captions from regular text.
1
vote
1answer
622 views
Can you change lstinline without changing the global lstset?
Consider that I want to be able to write:
\inline{some code or keyword} and just have it distinguished from the rest of the paragraph text, I've done that like this:
...
17
votes
3answers
1k views
How to make the optional title of a theorem bold with amsthm?
I use the code mentioned in Title of the theorem:
\begin{theorem}[The title]
Some statement
\end{theorem}
However with amsthm the optional title -- above: "The title" -- is neither bold nor italic, ...
3
votes
1answer
727 views
KOMA-Script: caption, subfig, and captionlabel
My problem is best illustrated with an example:
\documentclass{scrreprt}
\usepackage{caption}
\captionsetup[subfigure]{font={sf,md,sl,small}}
\setkomafont{caption}{\itshape\sffamily}
...
4
votes
1answer
302 views
Emacs LaTeX formatting paragraphs
I like the Format Paragraph function of Auctex/LaTeX in Emacs but it seems to move markup commands around. Is there any way I can format a buffer but only the plaintext sections of it so that it ends ...
0
votes
2answers
116 views
SO-style Markups for References in the Bottom of the Page in Bibtex-ed Document?
I often have a long bibliography and then later I find that I should have a notice like this buying-list in a project (not that important so not wanting them to the bibtex). I find it overkill to ...
6
votes
2answers
1k views
How to add a navigation window to a LaTeX generated PDF document?
Some ( if not most ) pdf ebooks have the option to view the table of contents in a left navigation window. I would like to add this option to my document as well. Question: How to add a navigation ...
1
vote
2answers
2k views
Formatting a LaTeX article to look really good [closed]
I have been using LaTeX to write scientific articles for about 6-months now. I know quite well now how to manipulate and create great content but don’t really understand the formatting/style side to ...
5
votes
2answers
539 views
How to create attendance sheets?
Is there a package for creating sheets you fill out by handwriting?
Like for example attendance sheets, a list of key borrowers, a sign-off sheet for dangerous stuff etc.
Basically some sort of ...
1
vote
1answer
255 views
Keep Format Settings in Lyx
I currently have a resume written in Lyx. I want to make some minor changes
to it and just change its content. However, I want to keep the same format
(i.e. the same margin, same indentation, etc.) I ...
4
votes
1answer
880 views
Nested enumerate list style
If I have a nested enumerated list style that I would like to use throughout my document, what's the best way to do it in LaTeX that will make it easy to change the style of all the lists in the ...
1
vote
3answers
614 views
Labels of list items CAPITALIZED + bold style
Is there a possibility to make the labels of description list items always appear CAPITALIZED and bold?
3
votes
2answers
193 views
Line ending with e.g. \\ \\* or \\[10 mm]
I am looking at some LaTeX source, trying to find out what different things mean. I am also reading the memoir manual.
I have stumbled upon two backslashes being used at the end of lines, optionally ...
4
votes
1answer
247 views
longtable and floatrow: font commands ignored
If I load both longtable (ltxtable) and floatrow, then \sffamily is ignored and the table is typeset in roman. If I disable floatrow everything works as expected.
floatrows \RawFloats command does ...
4
votes
2answers
127 views
Refer to some equation number in different environments
I hope there is a solution for this. When I refer to some equation I always get something like 37, but I would like to have (37). I could make a new command but the problem is I use many kind of ...
10
votes
2answers
448 views
Replacing all dots in a document
I want to replace all dots in a LaTeX document with a call to a macro.
Just doing a search and replace on '.' won't help as this will not replace the dots generated by LaTeX, e.g. in section numbers, ...
8
votes
2answers
1k views
How do I get “et al.” to appear in italics when using \textcite or \citeauthor with biblatex
I'm using biblatex with the chem-rsc package option. I sometimes make use of the \textcite{<key>} or \citeauthor{<key>} commands to put the authors' name into text. When there are many, ...
5
votes
3answers
621 views
Placing text and equations inside a box
I have a paragraph that contains text, inline equations and centred equations, and I'd like to put the whole thing in a box that's centred horizontally in the page. It's a key paragraph, so I wanted ...
3
votes
1answer
568 views
Customizing Multiple Choice Questions in EqExam Package
I use eqexam for creating Multiple Choice Questions with randomized answers. Let's take the following example:
\documentclass{article}
\usepackage[allowrandomize,nopoints,proofing]{eqexam}%
...
4
votes
2answers
233 views
Representing D- and L- in chemical names
Using LaTeX, how does one typeset the D- and L- prefixes, which refer to dextrorotatory and levorotatory isomers. I have tried \footnotesize~D\normalsize and it looks okay, but didn't know if there ...
6
votes
1answer
205 views
Best way to display percentages in Sweave?
What is the best way to display percentages in Sweave?
A simple example:
The number 4 is \Sexpr{4 / 7} of 7.
What is the best way to get the document to display:
The number 4 is 57.1% of 7.
3
votes
1answer
306 views
How to color digits with the listings package
For my project, I've been using the listings package in order to color the keywords, comments, strings, and digits in the code.
The thing is, I've managed to color the keywords, comments and strings, ...
7
votes
1answer
4k views
Matrix equation (esp. row vectors)
I'd like to write the matrix equation A = (x y) B (x y)^T, where (x y)^T is written as a column vector and B is a 2x2 matrix written as such. I can (almost) do this by, for example, the following:
A ...
6
votes
1answer
742 views
Format page numbers
How can I control look of the page numbers? For example, in the MWE below:
\documentclass[12pt]{article}
\usepackage[backend=biber]{biblatex}
\usepackage{fancyhdr}
...
7
votes
5answers
644 views
Disappearing Footnote
Goals: I would like to have the title, author, date, and the table of content on the same page. I also want the capability of being able to have a footnote to the author.
What I have done so far: I ...
9
votes
1answer
148 views
xindy: formatting the first letter of the first entry of a letter group
How do I format the first letter of the first entry of a letter group in an index generated with xindy? The result should look something like this:
...
\indexspace
\item \textbf{b}athroom\quad{}1
...
2
votes
0answers
105 views
sansmath and boldmath--mutually exclusive? [duplicate]
Possible Duplicate:
Make mathfont respect the surrounding family
This question is similar to the Bold, italic math (\bm) and sansmath question, but with a few more requirements.
I am ...
11
votes
2answers
1k views
Making a LaTeX document appear as though it were typeset in MS Word
I am typesetting a document in LaTeX for which I have been given exact specifications that are intended for an MS Word-processed document (single-sided, single-spaced, 0.75 inch margins, no more than ...
6
votes
3answers
447 views
Is it possible to change .ist (index style) file parameters mid-document?
Apart from the general document layout, the layout and formatting of indexes depend on two things:
The parameters of .ist (index style) files that are used by makeindex when transforming raw index ...
