# Tag Info

0

The standard package for making margin changes is the geometry package. You can indicate the change by the options in the geometry package. If you only want to change the top margin of the document to 0.5 inches, you would use the command \usepackage[top=0.5in]{geometry} Alternatively, if you would like to indicate the margin as a separate command, use ...

1

You can set the entire "address" inside a tabular-like structure. Below I've used tabularx: \documentclass[line,margin]{res} \usepackage{newcent,tabularx} \begin{document} \name{\huge Andrew Parker} \address{\begin{tabularx}{\textwidth}{@{}X l l@{}} South African & Address: & 123 M, Main Street, \\ Permanent Resident & ...

2

I would patch this setup by adding a macro \Glsheading that retrieves a capitalized version of the long acronym description. So, you could say something like \section{\Glsheading{test}} In the glossaries package those things are accomplished with token registers. For your purpose it will be sufficent to store the relevant information into a macro. Hence a ...

3

If you're using no package specialized in theorems, you can do \documentclass{article} \usepackage{etoolbox} \makeatletter \patchcmd{\@opargbegintheorem}{#2}{\textit{#2}}{}{} \patchcmd{\@begintheorem}{#2}{\textit{#2}}{}{} \makeatother \newtheorem{thm}{Theorem} \begin{document} \begin{thm} Something \end{thm} \end{document}

4


3

Here is a way with ntheorem package. I redefine the plain style: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{amsfonts} \usepackage[amsthm, thmmarks, thref]{ntheorem} \usepackage{cleveref} \makeatletter \renewtheoremstyle{plain}% {\item[\hskip\labelsep \theorem@headerfont ...

1

What you are asking for is basically, how do i get an invoice in the first doc. The answer is surprisingly simple, just load the package. \begin{filecontents}{mikeBlendDocs.lco} \ProvidesFile{mikeBlendDocs.lco}[% 2014/12/18 v0.1 LaTeX2e unsupported letter-class-option] \setkomavar{fromname}{From Name} \setkomavar{fromaddress}{From Address} ...

0

How to do this by \halign in plain TeX: \input opmac \def\rmbrackets{\adef({{\rm(}}\adef){{\rm)}}}\rmbrackets \hfil\vbox{ \halign{\hfil\it#\unskip\ &\hfil$#$\hfil&\ \it#\hfil\cr Formula &\to& Primitive Formula\cr &|& (Formula Connective Formula)\cr &|& $\neg$ Sentence\cr &|& ...

7


7

This typesetting task seems to be handled most easily with a tabular environment. In the code below, I load the array package to set up separate formatting directives for columns 1 and 3 (automatic italics mode) and for column 2 (automatic math mode). Doing this makes it unnecessary to insert lots of $symbols and \itshape directives in the body of the ... 3 It's not really well documented in algorithm2e manual, but to achieve what you want, you have to issue the command \SetProcNameSty{textsc} The argument of \caption when using the procedure environment can only contain something like name(arg). In the following MWE I've also added \SetProcArgSty{textsc} just in case you are using procedure captions ... 4 You can use amsthm and define your own theorem styles. \documentclass[12pt]{book} \usepackage{amsthm,amsmath} \newtheoremstyle{breakthm} {\topsep}% Space above {\topsep}% Space below {\itshape}% Body font {}% Indent amount (empty = no indent, \parindent = para indent) {\bfseries}% Thm head font {.}% Punctuation after thm ... 4 There are many packages for customising theorems, including theorem in the core latex distribution: \documentclass[12pt]{book} \usepackage{theorem} \theoremstyle{break} \newtheorem{definition}{Definition}[section] \begin{document} \begin{definition}[Integers] Integers are positive and negative whole numbers, including 0.\\ e.g.$..., -3, -2, -1, 0, 1, ...

1

Just go to "Project" and upload the missing files via the "Add files…" button, since the files have to be on the server, that is running writeLaTeX. In this case the file has to be named picture.<file-ext>, as this part of the code implies: \photo[64pt][0.4pt]{picture} If you don't want a photo, you can also just comment out this line (it's line ...

3

For an assignment (such as a research paper), try the turabian-formatting package. It provides "Chicago-style formatting based on Kate L. Turabian's 'A Manual for Writers of Research Papers, Theses, and Dissertations: Chicago Style for Students and Researchers' (8th edition)." The turabian-researchpaper document class, included as part of the ...

0

Here is a way. I use the makecell and rotating packagesz, plus hhline (the ordinary horizontal last line and vertical first line do not join well) and caption (for a correct vertical spacing between caption and table): \documentclass{article}% \usepackage{graphicx} \usepackage[ margin = 2.5cm]{geometry} \usepackage{tabularx, booktabs, array, rotating, ...

4

LaTeX will refuse to break a 'word' if it contains, among a few other characters, a /. This has very solid reasoning that's outside the scope of this answer, but the url LaTeX package will handle these things very cleanly. Instead of typing in the file path directly, use Insert -> URL. This will (presumably) wrap the argument in \url{<my text ...

4

I don't understand the need for the \setbox, \vbox, and \hbox instructions. If all you want to do is to create an image file containing a certain math expression, in a font size of 12pt, you could achieve this objective by writing \documentclass[12pt,preview,border=1pt]{standalone} \begin{document} $x^2 + \phi$ \end{document} More elaborate contents ...

1

use \setbox0=\hbox{% $x^2 + \phi$% } or: \documentclass[12pt,preview,border=1pt]{standalone} \begin{document} $x^2 + \phi$ \end{document}

1

A solution using the tcolorbox package (I touched only upon numbered chapters format). Btw, you chapterstyle should be block, not display: \documentclass[ 11pt,a4paper,twoside,openright]{book} %nummering \usepackage{tikz} \usetikzlibrary{matrix} \usepackage{fancyhdr} \pagestyle{fancy} \pagestyle{plain} \lhead{} \chead{} \rhead{} \lfoot{} ...

9

An option (providing settings for both numbered and unnumbered chapters); adjust the settings according to your needs: \documentclass[openany]{book} \usepackage[dutch]{babel} \usepackage[explicit]{titlesec} \usepackage{tikz} \usepackage{lmodern}% to have a large font size for the chapter numbers \usepackage{lipsum}% just to generate text for the example ...

1

The most basic solution I can think of is to use a single table environment and to place the two tabular environments, along with their respective \caption and \label statements, in separate minipage environments. \documentclass{article} \begin{document} \begin{table} \footnotesize % better than "\fontsize{8}{8}\selectfont" ...

0

Very briefly: \question\mbox{} \includegraphics{...}

3

Easiest is to load \usepackage[export]{adjustbox} and then put valign=t in the options of \includegraphics \documentclass[12pt,a4paper]{exam}%,answers \usepackage{tikz} \usepackage{alphalph} \usepackage{amsmath,amssymb} \usepackage[margin=1in]{geometry} \usepackage{graphicx} \usepackage{pgfplots} % for plots \usepgfplotslibrary{groupplots} ...

0

Here is an illustration of the use of the floatrow package: \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{inputenc} \usepackage{lipsum} \usepackage{graphicx} \usepackage{floatrow} \DeclareFloatSeparators{mysep}{\hskip4em} \begin{document} Text text text text text text text text text text text text text text text text ...

2

The answers to your three questions are Yes!: a dot in beetween no spaces does not mark a new sentence, No!: "DivX Mpeg-4" forms a closed unit and should not be separated but there is a better way - using \mbox - shown in the example, and Yes!: mark-up is an important typographical feature. In addition to the third point you have to remember that LaTeX ...

1

I struggled with this for a long time. The glossaries package is for making a kind of an index with definitions. What I had was a list of definitions, and I simply wanted to print them in a format suitable for definitions. I did not want to go through the book and find all, or even some, of the places where the terms were used. After a lot of digging ...

2

Your mistake is the spaces after \write{...} in your macro \exampledata. You need to correct your macro: \newcommand\exampledata[3]{% \immediate\write\@datawrite{Example \thesection.\theenumi}% \immediate\write\@datawrite{Source: #1}% \immediate\write\@datawrite{Checked: #2}% \immediate\write\@datawrite{Difficulty: #3}% ...

2

You can simply reduce the length of the box containing \themyenumi when defining the myenumerate environment. Reduce it from 8em to 5.5em: \makebox[5.5em][l]{\themyenumi} Complete code: \documentclass{article} \newcounter{myenumi} \renewcommand{\themyenumi}{\textbf{Example \thesection.\arabic{myenumi}.}} \newenvironment{myenumerate}{% % stuff for ...

2

Try I almost always use Edit → Paste Special → Plain Text (Ctrl+Shift+V). I am using LyX Version 2.1.2 2014-09-23 on Windows.

3

\documentclass{article} \begin{document} $$\left. AAAA \middle| BBBB\right.$$ \end{document}

6

This is a solution uses exam class and groupplots from pgfplots. Two different lablel skills are applied. One, on the bottom, is (requiring AlphaAlpha package) \makeatletter \pgfplotsset{ auto title/.style={title=(\AlphAlph{\pgfplots@group@current@plot}) } } \makeatother The other uses, on the top \node (A) at (group c1r1.north west) {A}; Code ...

5

may be the simplest is to use a table \documentclass[10pt,notitlepage]{article}% \usepackage[margin={2.5cm}]{geometry}% \usepackage{picins} \usepackage{graphicx} \makeatletter %from http://tex.stackexchange.com/questions/44195/placeholder-for-figure-includegraphics \def\Ginclude@graphics#1{% \parpic(\Gin@@ewidth,\Gin@@eheight)[d]{#1}\picskip{0}}% ...

12

I can reproduce your picture only if I add \left and \right in front of the parentheses. So just don't use them. \documentclass{article} \begin{document} $\sin^{2}\theta$ $\sin^{2}(\theta)$ $\sin^{2}\left(\theta\right)$ \end{document} By the way, without parentheses it's even better.

4

Here's a solution that's based on loading the etoolbox package and executing its \patchcmd macro a couple of times. \documentclass[11pt,reqno]{amsart} \usepackage{etoolbox} \makeatletter \patchcmd{\subsection}{\bfseries}{\itshape}{}{} \patchcmd{\@sect}{\@addpunct.}{}{}{} \makeatother \begin{document} \setcounter{section}{2} % just for this example ...

6

The formatting you are trying to change was tailored by the AMS to suit its editorial style; since AMS document classes do things in their own way, such changes cannot be made using packages that would cooperate with standard classes and some redefinitions of internal commands will be required. Redefining \subsection you can get non-bolded, italics font for ...

4

Ensure that you have no \raggedbottom somewhere in your document. Then you can adjust footskip using geometry package. \documentclass{article} \usepackage{kantlipsum} \usepackage{fancyhdr} \usepackage[margin=1in,footskip=0.1in]{geometry} \pagestyle{fancy} \renewcommand{\footrulewidth}{0.4pt} \begin{document} \kant[1-3]\footnote{some} \kant[1-24] ...

1

Here's one possibility, using the titlesec package. The idea is to define two commands allowing you to switch the section title formatting as many times as required; \CentSections gives you centered uppercased headings and \StdSections gives you the standard flushed, sentence-case headings. \documentclass[english]{article} \usepackage{babel} ...

1

As I wrote in a comment I would use different approach in general. So, even though your own anwer is working, I add this solution for completeness: \documentclass[twoside,twocolumn,letterpaper,11pt]{book} \usepackage[T1]{fontenc} \usepackage{ebgaramond} \usepackage{lipsum} \usepackage{fixltx2e} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} ...

5

Update Since the class used is IEEEtran, the amsthm approach I initially suggested is not the best option (IEEEtran handles theorem-like environments in its own way). In this case, since the class doesn't make provision for unnumbered structures, you can achieve the desired unnumbered structure in a consistent way simply redefining the associated counter ...

1

I found no way to accomplish the verse centering using the facilities of the package. So, what I did was to set each line in a \makebox of a fixed (but tuned) size, as defined by the macro \CC. So you need to wrap each line in a \CC wrapper, which is the downside. \documentclass{article} \def\CC#1{\makebox[4in]{#1}} \usepackage{verse} \begin{document} ...

8

Redefine \@biblabel: To have the number boldfaced: \makeatletter \def\@biblabel#1{[\textbf{#1}]} \makeatother To have the number in italics: \makeatletter \def\@biblabel#1{[\textit{#1}]} \makeatother To increase the font size of the number: \makeatletter \def\@biblabel#1{[{\Large#1}]} \makeatother A complete example with the number in italics: ...

4

With the shortlst package you are nearly safe. In this case you would write: Solve the following equations for $x$. \begin{shortenumerate} \item $2(x+2)=20$ \item $4-4x=12$ \item $x+5x-6=12$ \item $4x-4x+3x=18$ \item $3x=12$ \end{shortenumerate} This will give the following output: As the picture shows, it is necessary to check for the width ...

2

I think it's worth stating simply: anything between dollar signs is math, but it appears in line with the surrounding text (not on a separate line). So you should use $...$ when you are writing inline math, and you should not use it when you are not writing inline math.

13

As already commented by Manuel, $...$ puts the stuff between them into math mode. Here, totally different rules apply, e.g. unless it is part of a command (introduced by a backslash) every alphabetical character is considered to be the name of a mathematical variable, i.e. a chain of characters is just a bunch of variables; as the characters are treated ...

1

\documentclass{article} \begin{document} \noindent In inline mode you get `$\{X(t)\}_{t \geq 0}^{\infty}$'' and in display mode you get $$\{X(t)\}_{t \geq 0}^{\infty}$$ \end{document}

3

If you need rounded corner then you can use \pdfliteral primitive, for example: \let\sqrtori=\sqrt \def\sqrt#1{\setbox0=\hbox{$\sqrtori{#1}$}\sqrtori{#1}% \raise\ht0\hbox{\kern-.2pt\sqrtZ\kern.5pt}} \def\sqrtZ{\pdfliteral{q 1 j .3985 w 0 -.5977 m .5 -.5977 l .5 -2 l S Q}} $\sqrt2$ \end The result: The constants used in the path ...

2

You have to lower by 0.4pt which is the width of the line \box0\lower0.4pt\box2 With this \documentclass[a4paper,11pt]{article} \usepackage{letltxmacro} %MACRO \LetLtxMacro{\oldsqrt}{\sqrt} % makes all sqrts closed \renewcommand{\sqrt}[1][\ ]{% \def\DHLindex{#1}\mathpalette\DHLhksqrt} \def\DHLhksqrt#1#2{% ...

3

One possibility, using tcolorbox (adjust the settings according to your needs): The code: \documentclass{book} \usepackage{graphicx} \usepackage{changepage} \usepackage[many]{tcolorbox} \usepackage{lipsum} \definecolor{titlecolor}{RGB}{0,135,221} \definecolor{titleheadcolor}{RGB}{107,88,168} \definecolor{titlebg}{RGB}{249,252,98} ...

1

This will probably provide equally distributed left/right margins, remove the showframe option from the geometry package to remove the frame as well. Most probably, the editor of the journal will reject it, as the class svjour3 does not provide means for onesided documents. \documentclass[smallextended]{svjour3} ...

Top 50 recent answers are included