{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

2
votes
2answers
37 views

How to put giant parentheses around text [duplicate]

I want to make something that looks like this: / \ | Text goes | | in here | \ / The whole thing should be centered in the page, with the text ...
1
vote
0answers
32 views

Best practice for writing. Oneliner? Enter key? \\? \newline? [duplicate]

I just started using LaTeX to write my bachelor thesis and everything is already set up and working (took 2 weeks but it is finally done). I was just starting to write a chapter and am wondering what ...
1
vote
2answers
31 views

Change color of numbers of sections

I want to change this box in which I have the section number to black, which I can do. But then the text is the same color and illegible. I need to make it white. I tried this but it didn't do ...
0
votes
0answers
9 views

Control biber's bibliography entry field name lengrh

When I run biber, with options biber --tool --output_align --output_indent=2 --output_fieldcase=lower I get: @inproceedings{foo, author = {One, Some}, booktitle = {International Conference ...
3
votes
2answers
36 views

How do I make part of my table caption in italic font?

I am very new to Latex and I am trying to make a very simple table with a species name in the title (caption). I want all of my title to be normal font except for the species name, which should be ...
2
votes
0answers
28 views

et al. does not appear

I'm using \usepackage[options]{natbib} and \citet (IEEE journal) for writing the author name, but unfortunately when I run it just the name of the author appears without the et al. What should I do? ...
2
votes
2answers
41 views

Arrows line decoration on the left of paragraph

I'm working on a small package to manage QRH (a sort of checklist for aeronautical purposes). I want to print a line with arrows on the left of the paragraph, possibly with text in the middle, like in ...
2
votes
2answers
23 views

adjusting appendix title/ suppressing “Appendix A” title

I am trying to adjust the formatting for my appendix chapters. I am using a document class specific to my school, but many TeX suggestions for articles and reports seem to work. I use the following ...
5
votes
1answer
28 views

Modify Section Title in Document

I'm using memoir class. I'm trying to make section title that ends with a single dot. The section title would be in sans-serif font. I've searched for a while but still no luck. Here's my MWE. Thanks. ...
13
votes
2answers
203 views

Vertical spacing of \sin and \cos

This is a random, silly question. I was writing two versions of my calc 1 final and came across something that is going to bug the crap out of me. I have noticed a different spacing format for one ...
2
votes
1answer
25 views

How to change the enumeration of \subpart in exam document class?

By default, \subpart uses i. , ii. , etc. I would like to change it to (i),(ii),etc. How do I do that?
4
votes
1answer
64 views

How to insert a symbol to the beginning of a line for which a word appears?

This is to indicate changes for a LaTeX file. Say, I wanted to add a vertical line to the beginning of a line whenever"word 1", "word 2", ...", or "word 100" appears. Manually this can be done in ...
0
votes
3answers
30 views

Using a table inside a figure tag, otherwise changing table caption to figure

I've used a table of figures in order to format their presentation and order. But essentially the whole thing is a figure, so I want it now to get "Figure 5" as a caption. To do that I guess I have to ...
2
votes
3answers
51 views

Adding a different sized, independent, table under another with same caption

I am working on a paper and I need to add a different sized, independent, table under another with the same caption. I have tried and tried but nothing works. I have made a small, but complete, ...
2
votes
1answer
54 views

New line avoiding errors and following WYSIWYM philosophy

I understand that using \\ is not a good idea. It's better to use just the "enter" key or the \par command. Anyway, I don't like what I get. I would like to have a blank line between two pieces of ...
4
votes
1answer
53 views

Switch i, j dots with an arrow

I'm writing a Physics template and I came across this issue. I want the i, j to have vector lines instead of those dots. How can I do it?
5
votes
3answers
110 views

How do I redefine the paragraph style midway through the document (and then go back to the default)?

I prefer to build my bibliography manually because I'm finicky about the formatting, and I need each bibliographical entry to have a hanging indent and an empty line after it. I'm doing fine with this ...
0
votes
0answers
20 views

Publication-style format to include statistical tables with the Coef, Odds Ratio, Standard Error, and significance

I was wondering if there is a publication-style format if I wanted to include the coefficient estimate, the odds ratio (OR), the standard error of the estimate, and the significance (i.e. stars such ...
1
vote
3answers
34 views

Cant get the points in a \parts to bold on right hand side

I would like to get the points on the right hand side of the page in bold on the same line as the question see below. This is all I have so far. Not sure how to \renew \begin{parts} \part[2] ...
1
vote
2answers
114 views

utf8x character fails in the table of contents every second time i compile

\documentclass[a4paper]{report} \usepackage[utf8x]{inputenc} \begin{document} \tableofcontents \chapter{ø} \end{document} First time I compile this, I get an ø in the table of contents. Second time ...
6
votes
2answers
201 views

How to cross out a word in LaTex

How can I cross out a word in a sentence in Latex without using a package? MWE: \documentclass{article} \usepackage{cancel} \begin{document} %BeginDocument The first \xcancel{three commands} work in ...
1
vote
1answer
28 views

How to format the leading dots of section page number and subsection page number respectively in the table of contents

everyone: I came across a problem. Following is how I format my table of contents: \usepackage{tocloft} \tocloftpagestyle{empty} \renewcommand{\cftdot}{…} \renewcommand{\cftdotsep}{0} ...
2
votes
0answers
59 views

Is there any single property/option for creating all borders in LaTeX table?

\begin{tabular}{ | c | c | c | } \hline 1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ \hline 7 & 8 & 9 \\ \hline \end{tabular} If we want to create a ...
3
votes
2answers
26 views

Package changes horizontal pipe to horizontal for chapter formatting

I need to change the style of my chapters to a different one. I found a package which would do that, and it works nicely. However, my code before the edit was like this: ...
1
vote
1answer
23 views

Putting more than one image in one appendix

I am writing my PhD thesis on Sharelatex after having uploaded the template provided by my university. Usually, I try to solve this sort of problems on my own, but this time I couldn't really figure ...
3
votes
3answers
81 views

Formal proof formatting in Latex

Here is what I intend to achieve 1.r (Given) 2.(t ∧ r) → s (Given) 3.(p → t) → (q → ¬s) (Given) 4.t ∧ r (Assumption) ...
1
vote
1answer
35 views

How to input text from a file

I need to do the following: I have a file A which consists out of short fragments of text: Text 1 Text 2 Text 3 Text 4 I have another file file B in which I need to input ...
1
vote
2answers
50 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 ...
8
votes
3answers
139 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
94 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
59 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
44 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
11 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
25 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
29 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!
6
votes
3answers
122 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
60 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
35 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
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
28 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
20 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 ...
1
vote
1answer
87 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
45 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: ...
3
votes
1answer
73 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
14 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
78 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
65 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
48 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
39 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 ...