How to scale a verbatim environment on a minipage?How to scale a verbatim block in a user-defined environment?Typewriter font for math symbols (∃, ∀) in scaled verbatim environment for pdflatexDisplaying `beginverbatim…endverbatim` inside the environment verbatimminted Environment Inside minipage EnvironmentVerbatim environment with catchfilebetweentags packageverbatim environment fails on ' and `?minipage with verbatim package doesn't compileHighlight text in verbatim environmentMultiple line verbatim environmentHow show line in Verbatim environment?Fraction in verbatim environmentRoot in verbatim environment
I caught several of my students plagiarizing. Could it be my fault as a teacher?
How can I close a gap between my fence and my neighbor's that's on his side of the property line?
How can I fairly adjudicate the effects of height differences on ranged attacks?
Can PCs use nonmagical armor and weapons looted from monsters?
Can commander tax be proliferated?
I’ve officially counted to infinity!
What does air vanishing on contact sound like?
Survey Confirmation - Emphasize the question or the answer?
Packet sniffer for MacOS Mojave and above
How do I tell my manager that his code review comment is wrong?
What is the limiting factor for a CAN bus to exceed 1Mbps bandwidth?
What word means "to make something obsolete"?
Is it the same airport YUL and YMQ in Canada?
Topological Spaces homeomorphic
How to efficiently calculate prefix sum of frequencies of characters in a string?
Meaning of "individuandum"
Does hiding behind 5-ft-wide cover give full cover?
Field Length Validation for Desktop Application which has maximum 1000 characters
A Warm Riley Riddle
Why do freehub and cassette have only one position that matches?
What happened to Rhaegal?
If an enemy is just below a 10-foot-high ceiling, are they in melee range of a creature on the ground?
Why do computer-science majors learn calculus?
How to scale a verbatim environment on a minipage?
How to scale a verbatim environment on a minipage?
How to scale a verbatim block in a user-defined environment?Typewriter font for math symbols (∃, ∀) in scaled verbatim environment for pdflatexDisplaying `beginverbatim…endverbatim` inside the environment verbatimminted Environment Inside minipage EnvironmentVerbatim environment with catchfilebetweentags packageverbatim environment fails on ' and `?minipage with verbatim package doesn't compileHighlight text in verbatim environmentMultiple line verbatim environmentHow show line in Verbatim environment?Fraction in verbatim environmentRoot in verbatim environment
I have a plain vebatim environment. Questions 1, 2 are too complex to understand. I would simply like to align in the center and rescale the ascii art logo.
MWE:
documentclassarticle
usepackageamsmath
usepackagelipsum, caption
begindocument
beginfigure[!b]
centering
beginminipage[b]0.5linewidth
beginverbatim
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbatim
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbatim
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbatim
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
enddocument
The minibox is simple to understand so i used it.
minipage verbatim scale
add a comment |
I have a plain vebatim environment. Questions 1, 2 are too complex to understand. I would simply like to align in the center and rescale the ascii art logo.
MWE:
documentclassarticle
usepackageamsmath
usepackagelipsum, caption
begindocument
beginfigure[!b]
centering
beginminipage[b]0.5linewidth
beginverbatim
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbatim
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbatim
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbatim
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
enddocument
The minibox is simple to understand so i used it.
minipage verbatim scale
The linked answers seem to provide a solution and you forgot to putusepackagecaption
.
– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
add a comment |
I have a plain vebatim environment. Questions 1, 2 are too complex to understand. I would simply like to align in the center and rescale the ascii art logo.
MWE:
documentclassarticle
usepackageamsmath
usepackagelipsum, caption
begindocument
beginfigure[!b]
centering
beginminipage[b]0.5linewidth
beginverbatim
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbatim
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbatim
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbatim
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
enddocument
The minibox is simple to understand so i used it.
minipage verbatim scale
I have a plain vebatim environment. Questions 1, 2 are too complex to understand. I would simply like to align in the center and rescale the ascii art logo.
MWE:
documentclassarticle
usepackageamsmath
usepackagelipsum, caption
begindocument
beginfigure[!b]
centering
beginminipage[b]0.5linewidth
beginverbatim
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbatim
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbatim
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbatim
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
enddocument
The minibox is simple to understand so i used it.
minipage verbatim scale
minipage verbatim scale
edited 3 hours ago
ItsmeJulian
asked 3 hours ago
ItsmeJulianItsmeJulian
252212
252212
The linked answers seem to provide a solution and you forgot to putusepackagecaption
.
– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
add a comment |
The linked answers seem to provide a solution and you forgot to putusepackagecaption
.
– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
The linked answers seem to provide a solution and you forgot to put
usepackagecaption
.– marmot
3 hours ago
The linked answers seem to provide a solution and you forgot to put
usepackagecaption
.– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
add a comment |
2 Answers
2
active
oldest
votes
verbatimbox
can help.
documentclassarticle
usepackageamsmath,verbatimbox
usepackagelipsum, caption
usepackage[showframe,pass]geometry
begindocument
beginfigure[ht]
centering smallskip
beginverbbox[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
beginminipage[b]0.5linewidth
theverbbox
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbbox[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
beginfigure[ht]
centering
beginverbbox[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionHere is my scaled verbatim
endfigure
enddocument
add a comment |
Using your second link I got these results
documentclass[9pt]article
usepackageamsmath,adjustbox,fancyvrb,caption
usepackagelipsum
newenvironmentmyverb%
VerbatimEnvironment
beginadjustboxmax width=linewidth
beginBVerbatim
endBVerbatim
endadjustbox
begindocument
beginfigure[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureHuge 1
labelinterpt2
endfigure
vspace0.5cm
beginfigure[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureTiny 2
labelinterpt2
endfigure
enddocument
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f488327%2fhow-to-scale-a-verbatim-environment-on-a-minipage%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
verbatimbox
can help.
documentclassarticle
usepackageamsmath,verbatimbox
usepackagelipsum, caption
usepackage[showframe,pass]geometry
begindocument
beginfigure[ht]
centering smallskip
beginverbbox[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
beginminipage[b]0.5linewidth
theverbbox
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbbox[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
beginfigure[ht]
centering
beginverbbox[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionHere is my scaled verbatim
endfigure
enddocument
add a comment |
verbatimbox
can help.
documentclassarticle
usepackageamsmath,verbatimbox
usepackagelipsum, caption
usepackage[showframe,pass]geometry
begindocument
beginfigure[ht]
centering smallskip
beginverbbox[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
beginminipage[b]0.5linewidth
theverbbox
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbbox[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
beginfigure[ht]
centering
beginverbbox[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionHere is my scaled verbatim
endfigure
enddocument
add a comment |
verbatimbox
can help.
documentclassarticle
usepackageamsmath,verbatimbox
usepackagelipsum, caption
usepackage[showframe,pass]geometry
begindocument
beginfigure[ht]
centering smallskip
beginverbbox[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
beginminipage[b]0.5linewidth
theverbbox
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbbox[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
beginfigure[ht]
centering
beginverbbox[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionHere is my scaled verbatim
endfigure
enddocument
verbatimbox
can help.
documentclassarticle
usepackageamsmath,verbatimbox
usepackagelipsum, caption
usepackage[showframe,pass]geometry
begindocument
beginfigure[ht]
centering smallskip
beginverbbox[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
beginminipage[b]0.5linewidth
theverbbox
captionoffigurelogo1
labelinterpt1
endminipagehspace*5mm
beginminipage[b]0.3linewidth
centering
beginverbbox[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionoffigurelogo2
labelinterpt2
endminipage
endfigure
beginfigure[ht]
centering
beginverbbox[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endverbbox
theverbbox
captionHere is my scaled verbatim
endfigure
enddocument
answered 3 hours ago
Steven B. SegletesSteven B. Segletes
163k9209421
163k9209421
add a comment |
add a comment |
Using your second link I got these results
documentclass[9pt]article
usepackageamsmath,adjustbox,fancyvrb,caption
usepackagelipsum
newenvironmentmyverb%
VerbatimEnvironment
beginadjustboxmax width=linewidth
beginBVerbatim
endBVerbatim
endadjustbox
begindocument
beginfigure[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureHuge 1
labelinterpt2
endfigure
vspace0.5cm
beginfigure[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureTiny 2
labelinterpt2
endfigure
enddocument
add a comment |
Using your second link I got these results
documentclass[9pt]article
usepackageamsmath,adjustbox,fancyvrb,caption
usepackagelipsum
newenvironmentmyverb%
VerbatimEnvironment
beginadjustboxmax width=linewidth
beginBVerbatim
endBVerbatim
endadjustbox
begindocument
beginfigure[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureHuge 1
labelinterpt2
endfigure
vspace0.5cm
beginfigure[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureTiny 2
labelinterpt2
endfigure
enddocument
add a comment |
Using your second link I got these results
documentclass[9pt]article
usepackageamsmath,adjustbox,fancyvrb,caption
usepackagelipsum
newenvironmentmyverb%
VerbatimEnvironment
beginadjustboxmax width=linewidth
beginBVerbatim
endBVerbatim
endadjustbox
begindocument
beginfigure[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureHuge 1
labelinterpt2
endfigure
vspace0.5cm
beginfigure[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureTiny 2
labelinterpt2
endfigure
enddocument
Using your second link I got these results
documentclass[9pt]article
usepackageamsmath,adjustbox,fancyvrb,caption
usepackagelipsum
newenvironmentmyverb%
VerbatimEnvironment
beginadjustboxmax width=linewidth
beginBVerbatim
endBVerbatim
endadjustbox
begindocument
beginfigure[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureHuge 1
labelinterpt2
endfigure
vspace0.5cm
beginfigure[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
beginmyverb
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
endmyverb
captionoffigureTiny 2
labelinterpt2
endfigure
enddocument
answered 2 hours ago
KJOKJO
4,2251324
4,2251324
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f488327%2fhow-to-scale-a-verbatim-environment-on-a-minipage%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The linked answers seem to provide a solution and you forgot to put
usepackagecaption
.– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago