Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [examples]

The tag has no usage guidance.

0
votes
1answer
33 views

Hiding brackets after a definition

I use amsthm package to define the environment as \documentclass[a4paper,11pt,twoside,openright,notitlepage]{book} \pdfobjcompresslevel 0 \usepackage[a-1b]{pdfx} \usepackage[utf8]{inputenc} \...
0
votes
0answers
31 views

How can I number examples in the previous section?

How can I number the examples like the picture I attached?
2
votes
1answer
92 views

Example environment with a square box [closed]

I'm trying to add black square before every example in a text book. But when I use the following code, the result is as shown in the figure. \graphicspath{{Pictures/}} % Specifies the directory where ...
1
vote
1answer
41 views

svmono v5.6 doesn't like unnamed labeled examples

Put \documentclass{svmono}%%% v5.6 from http://www.springer.com/gp/authors-editors/book-authors-editors/resources-guidelines/rights-permissions-licensing/manuscript-preparation/5636 \begin{document} \...
2
votes
0answers
46 views

How to have code both word-wrapped and flush with an example number?

Using \verb| | in an example fails to give word-wrapping. Using: %! TEX = xelatex \documentclass[a4paper, titlepage]{book} \usepackage{listings} \lstset{ breaklines=true } \newcommand{\...
0
votes
1answer
51 views

Numbering Examples using theoremstyle

I wish to number the examples as Example 2.1 Example 2.2 and so on. But what I end up with is Example 2.1.1 Example 2.2.1 and so on, Following is the syntax I've used. Can anyone suggest some edit to ...
0
votes
0answers
52 views

Alternate between Arabic and Roman numerals in \example environment

I wish to be able to alternate between Roman and Arabic numerals for my running examples. With my current setting, I get Roman in the text, and Arabic in the footnotes. How do I get Arabic in the text?...
2
votes
1answer
111 views

How to set different length for different borderline of a box using tcolorbox?

I would like to create box of example using tcolorbox as the picture below: and so far this what i got Here is my code : \documentclass[justified]{tufte-book} \usepackage[most]{tcolorbox} \...
1
vote
1answer
60 views

Remove space when several gb4e examples

I would like to reduce the space when several examples follow each other. My examples are all quite long (several lines) and I provide a free translation (no gloss). [Edit] This is an attempt of a ...
1
vote
1answer
56 views

How to make () become [] in the environments of theorem, definition and example in beamer?

A MNW is as follows: \documentclass[notheorems]{ctexbeamer} \usetheme{Antibes} \usepackage{amsmath,amsfonts,amssymb,comment} \theoremstyle{theorem} \newtheorem{theorem}{定理} \newtheorem{lemma}[theorem]...
2
votes
2answers
96 views

How to frame text of different lines

I'm trying to reproduce this: I was able to reproduce everything but the frame below "John sleeps": I first tried using gb4e, but I didn't find a solution. Now, my examples are written by hand, ...
2
votes
0answers
50 views

Continuous numbering of examples with gb4e in both main text and footnotes

I would like to continue the numbering of the examples with gb4e from my main text in my footnotes. I guess that this has something to do with resetting the counter for \ex in footnotes, but I do not ...
1
vote
2answers
101 views

Automatically numbered examples [duplicate]

I was able to use the following new environment to number the examples automatically quite conveniently until yesterday when I updated TeXstudio to version 2.12.8. That is, I only needed to type \...
25
votes
2answers
3k views

Getting ducks in example images

This question led to a new package: duckuments There are lots of cool example pictures in LaTeX. As far as I'm aware there aren't any good example duck images ;-( Having ducks in the example ...
1
vote
1answer
89 views

Is there an alternative to tkzexample?

which packages can I use to display the latex code and the compilation result at the same time?
0
votes
1answer
96 views

multiple running examples [closed]

I need to be able to have several running examples, appearing over multiple sections and whose discussion is progressed as relevant throughout the paper, in an article intended for publication. If I ...
0
votes
1answer
204 views

Examples of Reusable Master Templates or Project Templates? [closed]

Are there any online examples of reusable Master Page or Project templates - that completely decouple complex layouts from content? Many of the examples I have seen show a single template document, ...
2
votes
1answer
186 views

Glossed examples with Roman numerals in footnotes

I'm writing a thesis and I want to have glossed examples with Roman numerals in my footnotes. With my current code this does not work: \documentclass[12]{report} \setcounter{tocdepth}{5} \usepackage{...
5
votes
0answers
157 views

Use filecontents environment to write a binary file

In this answer of mine, I was trying to show how to embed an audio file into the pdf with the multimedia package. The resulting MWE does not stand on its own because it requires an example audio file. ...
1
vote
2answers
571 views

What are the miminal required environments for a KOMA-Script scrlttr2?

I want to use the KOMA-Script letter2 class for creating client invoices. I've read the user guide (version 2017-08-08) and searched the web without finding the answer. The only way I can get the ...
1
vote
1answer
109 views

How do you change the number of the glossed example in linguex?

I minimally use the following packages: \documentclass[8pt]{article} \usepackage{qtree} \usepackage{linguex} \begin{document} \begin{enumerate} \qtreecenterfalse \item [(2)]\Tree [.BeP \phantom{DP} [...
1
vote
2answers
502 views

Two column enumerated list

I want to make an example with a two column enumerated list, but with enough space for the kids to write their answers on the in the example; attached is a photo of what I am looking for.
3
votes
2answers
609 views

Changing Font Family as in LaTeX wikibook example

I want to vary the font family in my document, as demonstrated in this example from the LaTeX wikibook. I built and compiled an mwe using that same code, but in the document I generated, the font does ...
4
votes
3answers
1k views

Tikz picture inside a box

I need to use a tikz picture and some text with equations, inside a frame or something like this, to add an highlighted example in my page. I tried using tcolorbox but it doesn't allow to use ...
0
votes
2answers
511 views

set example and definition in Texstudio (Ubuntu)

I want to set the example and definition numbering and also their font style. I found the code given below: \documentclass[letterpaper,12pt,titlepage,oneside,final]{thesis} \usepackage{lmodern}...
3
votes
0answers
240 views

What non-default Shapepar shapes are freely available? [closed]

The shapeparpackage comes with only a few templates for paragraph shapes. Looking around the internet, I was unable to find many additional shapepar creations. As creating shapes in the package can ...
1
vote
1answer
250 views

gb4e examples numbering in footnotes continuously

I used this code (without using the package chngcntr) to number my linguistic examples in the footnotes in roman. Now, I would like the example-numbering in the footnotes to be continuously, I don't ...
5
votes
2answers
230 views

expex: box around phrase and its gloss

Does anybody know how to achieve the effect illustrated in the picture? Using expex to typeset glossed linguistic examples, I'd like to be able to draw a box around an expression in the \gla line and ...
4
votes
2answers
545 views

How to get Example and solution as in the style of the attached jpg file

How to get Example and solution as in the style with boundaries of the attached jpg file. \documentclass{book} \usepackage{graphicx,amssymb,amsmath} \usepackage{exercise,chngcntr} \counterwithin{...
0
votes
1answer
1k views

How to number examples automatically? [closed]

I have document with 30 math examples. How do I number these examples automatically? Without using the list \begin{enumerate} ... \end{enumerate} like Example 1 blah blah Example 2 blah blah and ...
0
votes
0answers
58 views

Newenvironment In Beamer [duplicate]

A minimal example of my code is shown. The problem is, first of all, that the space between the title of the example and the description of the problem is too large. So I want to reduce the space, but ...
2
votes
2answers
758 views

Create example frame

How to create this type of example box? Thank you!
1
vote
1answer
419 views

Two examples side by side with expex

I'm using expex for linguistic examples. Frequently, examples are very short and I would like to avoid wasting all that space by basically formatting the examples in the usual two columns way. However,...
2
votes
2answers
333 views

ConTeXt minimal example with twocolumn, Footnotes, quote, lists, headings

I am thinking about moving at least for some purposes to ConTeXt because of the grid typesetting option. However I did not find a minimal working example that shows how to use Footnotes, Lists, the ...
3
votes
3answers
718 views

Change autoref and caption name for only one figure

I saw in Change figure caption name only in one figure, not all how to change the caption name for only one figure but I need to change de autoref name too. Using \begin{figure} \renewcommand\...
2
votes
3answers
82 views

'bullet centered' between examples in linguex

I'm using linguex package for examples. In one of them I use a bullet in this way: \documentclass{article} \usepackage{linguex} \begin{document} \ex. $\lambda P. \lambda Q. (\textbf{but}(P)(Q)): \...
1
vote
1answer
296 views

does not compile when using gb4e

I am writing a linguistic paper and I read that gb4e is a great package to insert numbered examples. When I use the package, the program no longer compiles. I cannot find answers on why I am getting ...
3
votes
1answer
501 views

gb4e examples numbering in chapters and footnotes

I am using the package gb4e for managing linguistics examples. I want two things: The examples should be numbered according to the chapter in which they appear, e.g. the first example of ch. 2 should ...
2
votes
2answers
398 views

Downloading the “The LATEX Com­pan­ion”, sec­ond edi­tion example files from CTAN

I learned that many of (La)TeX book examples are stored in http://ctan.org/tex-archive/info/examples directory. However, the directory with examples from the book LaTeX Companion 2nd ed does not ...
1
vote
1answer
386 views

Modify Example environment

\begin{example} Is there a way to modify the color of the word "Example 1" and also being able to tpye on the same line with the word Example 1? \end{example}
1
vote
1answer
100 views

Tikz picture appears below example

I have the following code to generate a tikz image inside an example. \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \newtheorem{example}{Example} \begin{document} \begin{example} ...
8
votes
2answers
996 views

How can I make a “fake” subsection number?

I'm writing a LaTeX document which includes examples of how to structure another LaTeX document. However, I can't figure out a way to make it so that there's a subsection in the example that is a) not ...
3
votes
2answers
469 views

How can I write like this example and boxs in latex

How can I write like this example and boxs in latex thanks very much
0
votes
1answer
237 views

The problem with box at the end of example

I have to be at the end of each example, sign the box. However, in various situations, it appears in some other places. I would like that it was always in the same place. I wish that was on the right ...
2
votes
2answers
129 views

Moving number labelling on forest linguistics diagrams

I'm using the forest package for some linguistics diagrams at the moment and I need to number them. However, the label for the numbering is aligned with the bottom of the digram when I want to have it ...
2
votes
2answers
1k views

Use \newtheoremstyle to define a custom example environment

I am trying to define a custom example environment for my thesis, but with my limited knowledge of LaTeX I am not able to figure this out from the amsthm documentation. Here is a minimum working ...
5
votes
1answer
225 views

Code example, as in the TikZ/PGF manual, but extending to the width of the page

I am preparing a second "edition" of my minimal guide to TikZ and would like to have more professional looking presentation for the example. Thanks to Thomas F. Strun this is for the most part easy - ...
2
votes
2answers
623 views

Quote area including a left bar

Finally, I managed to create a own quote style with that: \usepackage[most]{tcolorbox} \definecolor{block-gray}{gray}{0.95} \def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em \...
2
votes
2answers
304 views

Example Environment with two boxes

I am trying to get my "example" environment to look this: with the two boxes before the word "Example". Can you help me get this effect? Here is some code: \documentclass[11pt,fleqn,table]{book} \...
1
vote
1answer
83 views

Should an example from the Arabi manual compile?

I tried to compile the figure 7.3 from the Arabi user-guide.pdf version 1.1 from december 16, 2006. It didnot compile instantly I had to make changes to the copy from the pdf. The problem were the ...