{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

0
votes
2answers
38 views

Wrapping text in a fcolorbox? [duplicate]

I'm using package "color" to have a green text box with black text, and my code is - \textbf{\fcolorbox{black}{green!30}{black text on a boxed green background}} How can I get it to wrap lines ...
7
votes
3answers
124 views

Hanging Indents / Text Wrapping

I'm trying to implement a command to be used in place of the itemize/enumerate environments. The idea is that I want to have a command (\detail), which can be used to construct an itemized list ...
7
votes
3answers
81 views

\hrule after descenders

I'm trying to redo my CV in latex, and I'm running into a minor issue with the placement of \hrule. I define a category environment for each section via \newenvironment{category}[1] {% ...
1
vote
1answer
45 views

How to align item labels?

When I try to answer the a matching question in my assignment, I find that my final PDF of the four answers shown above are not aligned with each other. It seems that the lowercase "b" is taking more ...
2
votes
2answers
37 views

\titlesec and chapter&section missing zero error

I've looked and looked on here for a possible answer but i'm coming short. I even referenced the titlesec .pdf instructions and still no clue. I'm having an issue with my \chapter in the main body, ...
0
votes
0answers
10 views

I am having problems with table placement [duplicate]

Hi I am sorry if this is a repeat, I tried to find a similar problem but I could not. I am making Cayley tables and I quite like the ease of the code I am using, but something strange keeps happening. ...
3
votes
1answer
20 views

pgfplots bar plot number format

I was just trying to compile some data into a bar chart using pgfplots. Things seem to work apart from the following: The annotation for the bars has low precision, i.e. only 3 decimals, it is shown ...
0
votes
1answer
28 views

Table not displaying in desired location [duplicate]

I am writing a lab report and I want to display the a table underneath my Results section. This is my code: However, the result looks like this: Why is this the case? Thanks!
5
votes
2answers
109 views

Draw italic box as a placeholder (around a single letter) in a word

I am comparing a lot of different cases that are all following a predefined naming scheme. I would now like to replace one of the character in the name with a box to indicate that this parameter is ...
1
vote
0answers
54 views

Right way for text inside math

I'd like to know (if there is) the better way to punctuate text inside math mode. I mean, when we use , or ;, they are punctuation for the text, not for the math and so I think that they should be ...
0
votes
1answer
29 views

Alignment of Appendix Chapter Headings

I am in the final weeks of my time as a PhD graduate student, and I need to fix one last item in my thesis to conform to my graduate school's thesis formatting requirements. The graduate school ...
0
votes
0answers
30 views

Latex - Formatting such a resume [closed]

I would like to get some pointers on how to create a resume in LaTeX like this.
0
votes
0answers
24 views

Finding the cause for an overfull vbox [duplicate]

When compiling my document I get the following warning message: Badbox line 1: Overfull \vbox (1.77525pt too high) has occurred while \output is active [] Now from Google I learned that this ...
0
votes
0answers
23 views

IEEEtran table formatting doesn't work

I'm totally new to this so any insight would be greatly appreciated. I want to create a document using IEEEtran and despite trying on multiple operating systems and editors I can't seem to get tables ...
2
votes
1answer
18 views

Specify Figure name color and slant

Every time I have to denote a figure name in the text I have to type: {\textcolor{ocre}{\bf{\emph{Fig.\;\ref{figurename}(b)}}}} Is there an optimized way to specify this in the preamble so I do ...
0
votes
0answers
60 views

Style when writing scientific papers [closed]

Is there a reference where I can see common stylistic choices made when writing a scientific paper in LaTeX? An example of a stylistic choice that I make is I plot my data with PGFplots when possible ...
1
vote
1answer
78 views

New example environment, with symbol at the end

Is there a standard formatted environment specifically used for examples? I'm writing a document on linear algebra, with the usual definition-theorem-proposition-example structure. Right now when I ...
2
votes
1answer
42 views

Equation number is too far from the equation

I'm trying to number some equations in a document that I'm writing, but the numbers are to the extreme right of page and I want it to be next to the equation. Right now, for example, it looks like: ...
2
votes
0answers
46 views

Argumentless macros for use in other macros

I'm in need of argument text formatters for use in some environments that use macros to redefine properties (e.g., enumitem). I need to underline text but there is no equivalent argumentless macro ...
4
votes
1answer
23 views

Making certain equation environments larger

I'm writing a lab report in LaTeX that involves a lot of equations. I wish for some equations to be larger than normal, owing to the fact that there are a lot of terms that are in the exponential, and ...
1
vote
1answer
13 views

How to affect line spacing in only one group on the title page?

I am trying to set up a title page for my summaries of the classes I take. The problem lies with the line spacing for the title being too small and me not being able to change just that. My .sty-file ...
6
votes
2answers
68 views

How to restrict width of tcolorbox according to the length of the text it contains

I have created a tcolorbox (as given in tcolorbox version 3.40 manual - page 155) LaTeX Code: \tcbset{ enhanced, colback=red!5!white, boxrule=0.1pt, ...
3
votes
1answer
55 views

Automated format in a nested enumerate environment

I have to do a small document, in which I intend to use Tufte-handout rather than article or Scrartcl classes and compile it with XeLaTeX with a typography I intend to use. However I have a ...
4
votes
1answer
44 views

Using subfig package with bmcart class breaks caption formatting

I am writing a paper for a journal and have to use the bmcart class of the BioMed Central template found here (direct link to ZIP file). I use subfigures, but as soon as I load the subfig package, ...
2
votes
1answer
37 views

Adding a different colored line to each row of a table

It is possible to get colored \hlines with the example provided below. However, there are several issues with this implementation: It needs a \newcommand for every color, which then has to be used ...
2
votes
1answer
21 views

Citation in longtable overflows into margin

I have to produce two different versions of a document: one with author-year citations, and one with numbered citations. Thus, I'm using natbib and for each document I modify the natbib options. ...
0
votes
0answers
36 views

Latex stretches my last page before plots

If an image is too big to be put on some page that already contains some text, Latex puts it on the next page and stretches the space between the text lines of the preceding page. I would rather ...
2
votes
1answer
24 views

Equal vertical spacing between quote and chapter number independent of line spacing

Similar to the answer of this question on stackoverflow, I have renewed the \begin{savequote} and \end{savequote} environment to be always single spaced no matter what the rest of the document is. ...
3
votes
2answers
28 views

Bolding the first line of \item elements, question/answer sytle

I was wondering if it was possible to bold the first line of an enumerated list without effecting the remainder of the list. The output I want would be the same as: \begin{enumerate} \item ...
1
vote
1answer
48 views

Non italic text in math formula inside remark

I use some text in the math formula, e.g.: $ \texttt{MinimumPolynomial}(T) \mid \texttt{CharacteristicPolynomial}(T)$. I use "\texttt" to make such text non-italic. This works fine but, when I ...
2
votes
0answers
19 views

Redefining glossaries style: grouping and capitalization issue

I'm trying to redefine the style of my glossaries list, and base it on the altlist. When executing the new style however, I notice that there is an empty line when two glossary items are grouped, even ...
4
votes
1answer
44 views

How to use newenvironment inside a table?

How to define a formatting to use for (individual) rows of a table? Example: (For each row) the first column is always bold, and the second column has an italic "title" and some text and possibly ...
0
votes
0answers
27 views

Auto hyphen in a Report

I am working on a LaTex "report" using WinEdt 9. The complied document contains "hyphen" which are generated by default. Is this possible to prevent from it. I tried \usepackage[none]{hyphenat} which ...
2
votes
2answers
57 views

Multicolumns with equation format

I'm currently writing a summary for my semiconducter devices course and I'm trying to do it with Latex (just started today). I have the following problem: I have two chapters with two formulas each. ...
4
votes
4answers
74 views

Aligning sums in math mode

What is the best way to typeset this? I found a way to do it, but it seems like an ugly workaround, and the + signs aren't aligned right. The code I used: Let's evaluate the value of: ...
1
vote
0answers
63 views

How do you underline

How do you underline text? Also how do you underline math?
0
votes
1answer
105 views

First Word or Letter taking two lines or three in a paragraph [duplicate]

Some articles start with its first word or letter in its first paragraph taking up the space of two lines or three lines. For example, it might look like the picture below (ignoring the rules). Is ...
4
votes
1answer
32 views

figure and figure* with inconsistent orders

How to have figures of both types \figure{} and \figure*{} ordered correctly among one another? I have elements of both types \figure{} and \figure*{} in a document (its class is ...
0
votes
0answers
48 views

Latex copy formatting table

How can i copy formatting table from latex pdf? To word or email message? When I copy - paste table from pdf paste only text, without formatting tables line. Part of my .tex: ...
1
vote
1answer
25 views

In Latex, how to increase the size the font coloring when writing mathematical mode

I would like to write color equations and increase the font
4
votes
2answers
129 views

How to make all quotes in LaTeX italicised

I want to italicise all the quotes in my paper. By that I mean that everything in the {quotes} environment is italicised to help differentiate it from the main text. I've seen a few threads talking ...
2
votes
2answers
44 views

Moderncv: How to avoid bold lettering for recipients?

I'm using moderncv to get my cover letter. In the upper part of the document LaTeX sets up the address line of the company. The thing is that the first part of this address line has bold letters. ...
1
vote
2answers
47 views

Background margin fill for (first line of) section titles?

I'd like some of those "flaps" (how are these really called in typography, actually? Is it "thumb index"?) which is a bit of fill, extending to the margin; so that when you "bend" a book, you can see ...
0
votes
0answers
43 views

Using “newlfm” template - How to remove 2nd page and empty white space after signature block?

I have just begun using the "newlfm" template to write a cover letter but when I print the letter it generates a blank second page and leaves entirely too much white space beneath the signature block. ...
0
votes
1answer
57 views

How do I change labels of the enumerate environment?

I write \begin{enumerate} \item MMMMMM \item NNNNNNN \end{enumerate} but when I compiled appear: a)MMMMMMM b)NNNNNNNN I wish the item to appear in Arabic numerals instead of letters 1)MMMMMMM ...
15
votes
6answers
311 views

Function to autoformat string of text

I am writing a thesis that will require the reporting of the results of multiple ANOVAs. Reporting these follows the format F1,16=5.06, P=.009. I would like a tool that does this formatting for me, ...
0
votes
0answers
38 views

Pdf text looks faded both on screen and on paper [duplicate]

Looking at the pdf generated from the latex code (I am using texmaker) it looks faded with respect to other pdf files I am use to read. I mean, the words are not as dark as the ones on the other ...
3
votes
2answers
91 views

Insert text in-between rows in a table

I'm trying to achieve the following effect: +------------+---------+ | Col1 Col2 | | +------------+---------+ | Value 1 | Value 2 | | Value 3 | Value 4 | Text goes here... | Value 5 ...
4
votes
1answer
99 views

How to write in smallcaps in chead of article class?

I want to write few words in small caps. But it's not working in \chead \chead{\textbf{\textsc{\Huge Small Caps Text}}} Can you please suggest?
0
votes
0answers
39 views

LaTeX for scientific publications? [duplicate]

please excuse the noob question, but I'm pretty new to the Tex Stackexchange. I am currently working on my PhD in a biochemical engineering/nanoengineering field. I was wondering what resources would ...