Tag Info

New answers tagged

0

Update: I moved to TexMaker editor and found what I was looking for. Thanks to everyone who got interested in this question. If you have the same issue and are looking for an answer, here it is (for TexMaker users).


0

You can also use the verbatimbox package to save the verbatim content into a named LaTeX box prior to the \only and then apply \only to the box. \documentclass{beamer} \usepackage{verbatimbox} \begin{document} \begin{frame}[fragile] \begin{myverbbox}{\onlyA} V1 V2 V3 V4 [1,] 0 1 1 0 [2,] 1 0 1 0 [3,] 1 1 0 0 [4,] 0 0 0 0 \end{myverbbox} ...


0

I am posting it too late. But one easy solution is "Don't use frame at all".. Latex will automatically assign a frame. \begin{document} \begin{verbatim} \begin{frame}[<alignment>] \frametitle{Frame Title Goes Here} Frame body text and/or LATEX code \end{frame} \end{verbatim} \end{document} It will automatically assign a frame to the ...


2

verbatim material cannot appear in the argument of another command, so the usual approach \only<1>{\begin{verbatim}...\end{verbatim}} won't work. The easiest solution is to use the onlyenv environment (thanks to daleif for his comment about this): \documentclass{beamer} \begin{document} \begin{frame}[fragile] \begin{onlyenv}<1> ...


6

Use the fancyvrb package: \documentclass{article} \usepackage{fancyvrb} \fvset{tabsize=4} \begin{document} I'm regular text \begin{Verbatim} I have no tab I have 1 tab I have 2 tabs I have no space I have 4 spaces I have 8 spaces \end{Verbatim} \end{document} The site is changing tabs to four spaces, so this might seem ...


2

As Mike Renfro points out in the comments, many text editors support converting between tabs and spaces; some will even make the change seamless and transparent by printing some number of blank spaces when you press the tab key. This is probably the easiest answer to your exact question. Another solution if you happen to be a Linux (maybe OSX) user would be ...


2

You have some errors in your WME. I only correct them and use article and instead of tufte-handout (I havent instaled it in my MikTeX). Also I comment the babel for the same reason: \documentclass[twoside,symmetric]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} %\usepackage[spanish,mexico]{babel} \usepackage{array} \begin{document} ...


2

Wrong syntax, please check the documentation of package fancyvrb. The environment name starts with an uppercase letter V and the options are not inbetween, but follow \begin{Verbatim}. \begin{Verbatim}[samepage=true, gobble=4] sc <- read.table("~/pathToData/sc.data.txt", quote="\"", comment.char="") some more code and even more ...


3

something like this might be a start Start the file \input texinfo @c -*-texinfo-*- @iftex @input texinfoextras @end iftex then compiling (e.g. for Info) with makeinfo --no-iftex texinfo.texi to hide the input command from this processor. For processing with texi2pdf, a sensible texinfoextras.tex could be @catcode`@\=0 \let\oldexample\example { ...


3

You can redefine the way Verbatim works using \RecustomVerbatimEnvironment, adding the formatcom key to execute formatting commands at the start of the Verbatim environment. Since the environment scope limits the extent of what happens with the content of formatcom, there is no need to reset it at the end: \documentclass{article} ...


0

Ok, I got an answer which applies to fancyvrb package. The main point is to RecustomVerbatimEnvironment. \documentclass{article} \usepackage[english,greek]{babel} \usepackage[utf8]{inputenc} \usepackage{fancyvrb} \usepackage{xcolor} \RecustomVerbatimEnvironment {Verbatim}{Verbatim} {commandchars = \\\{\}, commentchar = !} \newenvironment{testenv} { ...


2

The verbatimbox package can be helpful here. It allows you to stuff verbatim into a box. In this case, I stuff it before the invocation of \addfig into a box named \myafterfig. Then I can recall that box as part of the figure content. Because it is a box, I can center it, as well. \documentclass[a4paper,twoside,12pt]{article} ...



Top 50 recent answers are included