{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

1
vote
1answer
87 views

`every loglogaxis/.append style` not working in PGFplots

I'm trying to apply to scientific notation as constructed in Number format of ticks in log log axis won't change to scientific notation `a x 10^b`, 'a' real, 'b' integer to all ...
1
vote
1answer
70 views

Inline calculation gives `Could not parse input` error in PGFplots

The inline calculation exp(\tick) in PGFplots gives me a Could not parse input error when compiling the code \documentclass[margin=1cm]{standalone} \usepackage{pgfplots} \begin{document} ...
1
vote
1answer
478 views

How to create custom sidebar of your own beamer theme?

I am trying to create my own beamer theme and wish to create a right sidebar having the same hight as the slides. Unfortunately this is not the case. \useoutertheme[right]{sidebar} ...
1
vote
2answers
111 views

Changing the position of the Chapter heading

I am trying to alter the chapter heading that is preset in the book template. I have found a style I like from Vincent Zoonekynd’s web-page, http://zoonek.free.fr/LaTeX/LaTeX_samples_chapter/0.html, ...
1
vote
2answers
215 views

Number format of ticks in log log axis won't change to scientific notation `a x 10^b`, 'a' real, 'b' integer

I'm trying to set the number format of the ticks in a loglogaxis to the scientific notation a x 10^b ($a \cdot 10^{b}$ in LaTeX, a a real number and b an integer), but it's not working. I use the ...
2
votes
0answers
25 views

Automatic reformatting / style checking of input files? [duplicate]

Coming from Python land, one of the best tools is autopep8 and alike which automatically tweak the layout and spacing of your programs to fit the PEP8 code style guide. My basic question is: are ...
1
vote
2answers
98 views

Seeing Korean characters in the editor

I use a tex template that includes Korean characters. When I compile it, the PDF document displays the Korean characters correctly. Yet, the Texshop text editor displays some rubbish characters ...
1
vote
1answer
118 views

Formatting Chapter Headings

I am using documentclass book and generating short chapters (one or two pages each). The chapter headings use too much space. I want the title at the top of the page, not pushed down. I reduced ...
3
votes
1answer
74 views

Forcing \savebox to use correct mode

I found myself wanting to use a construct of the following type: \newsavebox{\mybox} \newcommand{\mycommand}[1]{\savebox{\mybox}{#1}\reflectbox{\usebox{\mybox}}} The problem is that I want the ...
3
votes
1answer
111 views

Underline / Overprint Section Header - Memoir Class

I have to write a long report in LaTeX and I'm using the memoir document class. I figured out how to change the color and make the section headings in upper case but I also would like to have an ...
0
votes
2answers
32 views

brackets and text should start at the same postion

I have the following document: \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
3
votes
1answer
51 views

Suppress Termcal Class Numbering

I'm interested in suppressing the termcal class numbering. My Googlefu showed me that I can use the code \newcommand{\calprintclass}{\textbf{\small\theclassnum}} to change the formatting of the ...
0
votes
0answers
21 views

' and ^t to the left of a letter [duplicate]

There are times where I want, say, a superscript $t$ to the left of another letter to denote, say, the transpose of a matrix. Or, I might want to decorate a letter on the left with a prime, $'$, ...
1
vote
1answer
67 views

How should multiple time formats be used?

I want to have a command to display the current time in a few different formats, specifically, the following: 2015-05-15 15 May 2015 122200 2015-05-15T122200 I'm not sure how to do this properly ...
3
votes
1answer
32 views

bracket on right side to the following identities and give it numbering as (*)

I want bracket on right side to the following identities and give it numbering as (*) \begin{align*} \mu(E)&=\sup\{\mu(K)~:~ K \text{ is a compact subset of } E \}\\ &=\inf\{\mu(U)~:~ U ...
4
votes
1answer
169 views

Best way of formatting a given paragraph (or set of paragraphs) in ConTeXt

Altough I have read the documentation, I have not find a definitive answer for this, so I hope somebody has a better understanding that I have. I want to make a paragraph (or set of) stand out from ...
0
votes
1answer
47 views

'buf_size' extension

I have used LaTex for a number of years, but here is a new difficulty I have not found before (I quote from the output): TeX capacity exceeded, sorry [buf_size=3000]. I only got 7 pages in the dvi ...
4
votes
1answer
314 views

Formatting and aligning of floating point numbers in table

I've got the following table: \documentclass{report} \usepackage[intlimits]{amsmath} \usepackage{floatflt} \usepackage{caption} \usepackage{listliketab} \usepackage{tabularx} ...
2
votes
1answer
185 views

Reverse the page order in the whole document

I am looking for a simple way to reverse the whole document's page order. So first page becomes page 7, second page 6, ..., seventh page 1. Is there an easier way than reversing it afterwards using ...
4
votes
1answer
56 views

Disable right column for this page

I have a long, two column document. In one of these pages, I added a graphic that spans exactly the right half of that page and touches the edge; done with this code: \begin{tikzpicture}[remember ...
2
votes
1answer
254 views

Bullet points and curly braces - Beamer

A few months ago, I asked for help with formatting curly braces next to bullet points, which worked very well. However, I have tried to take that code and use it in beamer, which is unfortunately ...
2
votes
2answers
71 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
38 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
74 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 ...
3
votes
2answers
147 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 ...
3
votes
2answers
130 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
93 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
54 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. ...
17
votes
2answers
1k 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
87 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?
5
votes
1answer
196 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
81 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
61 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
69 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
96 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
174 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 ...
1
vote
3answers
58 views

Can't 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
162 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
624 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
117 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
68 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
72 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
100 views

Putting more than one image in one appendix [closed]

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
430 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
64 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 ...
2
votes
2answers
688 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
419 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 ...
8
votes
3answers
256 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
90 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
612 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, ...