Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3341208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:41:47+00:00 2026-05-18T00:41:47+00:00

can someone please tell what I’m doing wrong here? \newcommand{\bc}{\small\begin{verbatim}} \newcommand{\ec}{\normalsize\end{verbatim}} and then \bc

  • 0

can someone please tell what I’m doing wrong here?

\newcommand{\bc}{\small\begin{verbatim}}
\newcommand{\ec}{\normalsize\end{verbatim}}

and then

\bc
1  3       6 7 89 10
 22 7  7  45
\ec

but I get

Runaway argument?
^^M1  3       6 7 89 10^^M 22 7  7  45^^M\ec^^M^^M\section{Reading on\ETC.
! File ended while scanning use of \@xverbatim.
<inserted text> 
                \par 
<*> i4c.tex

? 
! Emergency stop.
<inserted text> 
                \par 
<*> i4c.tex

I thought it was pretty safe to do that, since most commands are just text substitutions… any hints?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:41:47+00:00Added an answer on May 18, 2026 at 12:41 am

    How \begin{verbatim} works. briefly and roughly.

    1. \begin{verbatim} is expanded to \verbatim.
    2. Then \verbatim sets category code of each special characters to 12.
      Now all chars is like digits or puncts.
    3. Then \verbatim sets font, parindent and calls \@xverbatim.
    4. \@xverbatim catches the end of verbatim using the following trick:

      \def\@xverbatim#1\end{#1\end}
      
    5. Then \end{verbatim} finishes work.

    How newcommand{\bc}{\small\begin{verbatim}} works.

    1. \bс expands to \small\begin{verbatim}.
    2. Then \begin{verbatim} expands to \varbatim.
      \varbatim changes all categories and font.
    3. Then \verbatim calls \@xverbatim.
    4. \@xverbatim tries to catch your argument using the following trick:

      \def\@xverbatim#1\end{#1\end}
      

      but it is impossible because of \@xverbatim tries to catch
      \end where all letters (\,e,n,d) have the category 12 and 11.
      But in fact there are only \ec exsits.

    5. \@xverbatim is trying and trying to find \end where backslash (\) has category 12 but…. File ended while scanning use of \@xverbatim
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone please tell me what I am doing wrong here? <script type=text/javascript> (document).ready(function()
can someone please tell me what i'm doing wrong? i'm trying to hash a
Can someone please tell me what I'm doing wrong? I'm using the following arguments
can someone please tell me what I'm doing wrong in this code? if($id !=
Can someone please tell me what I'm doing wrong? I'm trying to put together
Can someone please tell me what's wrong with this sp. The logic seems to
Can someone please tell me whats wrong with this code. I'm not getting complete
Can someone please tell me where I'm going wrong with this piece of code?
can someone please tell me what is wrong with this query? $sql = INSERT
Can someone please tell me whats wrong with my Manifest file? I'm getting the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.