Latex

    转载

    【转】latex常见错误对照表

    原文链接:http://www.cs.utexas.edu/~witchel/errorclasses.html



    Latex Error Classes

    Ambiguous Errors

    This is a list of error classes with ambiguos error messages. Here either the errors are have different causes and the message output is same or else the errors have the same root cause but the messages are different.

    S.NoClassError MessageCause of Error
    1e_des! LaTeX Error: There's no line here to endUsage of \\ at the end of a long label in 'description' environment
    2e_center! LaTeX Error: There's no line here to endUsage of \\ after the heading line in 'center' environment
    3e_foot ! Argument of \@sect has an extra }Usage of a fragile command 'footnote' within \section
    4e_ragged ! Argument of \@caption has an extra }Usage of \\ within \raggedright or \raggedleft environment
    5e_and ! Extra alignment tab has been changed to \crToo many &s in a row of a table or array or eqnarray.
    6e_cline ! Extra alignment tab has been changed to \crReference no non existing column in \cline
    7e_col ! Extra alignment tab has been changed to \cr.Usage @ in tabular* environment
    8e_num ! Missing number treated as zeroUsage of non numeric parameter after \\
    9e_asteriskMissing * at the end of the line* is not printed when used without brace after \\
    10e_pbox_miss ! Missing number, treated as zero.\parbox[t]{} ..Missing argument to parbox
    11e_mis_circle ! Missing number, treated as zero.Missing numeric parameter to \circle
    12e_list ! Argument of \lst@next has an extra }Usage of 1stlisting inside fragile command \parbox
    13e_capacity ! TeX capacity exceeded, sorry [input stack size=1500]Usage of 1stlisting inside fragile command \parbox
    14e_runawayRunaway argument?Generally because of missing braces, e.g \cline{1-2 instead of \cline{1-2}
    15e_verbatimRunaway argument?Usage of verbatim within scope of another command e.g: \ifthenelse
    16e_undefined! Undefined control sequenceUsage of an unknown command
    17e_footnote! Undefined control sequenceUsage of \footnote within \footnote
    18e_integral ! Missing { inserted.Integral bounds are malformed
    19e_zeta ! Missing { inserted.Extra subscript before integral upper limit term
    20e_bezier ! Illegal unit of measure (pt inserted).Missing numeric argument to \qbezier
    21e_too_bezier ! Illegal unit of measure (pt inserted).Too many arguments to \qbezier
    22e_unit ! Illegal unit of measure (pt inserted)\parbox[t]{2} ..Illegal unit of second parameter
    23e_symfoot ! LaTeX Error: Counter too large.More than 9 footnotes when using symbolic footnotes
    24e_large_count ! LaTeX Error: Counter too large.Trying to display a corresponding letter for a counter vallue >26
    25e_begin! LaTeX Error: Missing \begin{document}Either text has been placed before \begin{document} or \begin{document} is missing
    26e_margin ! LaTeX Error: Missing \begin{document}.Misuse of \marginsize

    Common Errors

    S.NoClassError MessageCause of Error
    1e_fileEnd! File ended while scanning use of \end.Generally caused because of missing a brace
    2e_endNo message only an asterisk, i.e *Missing \end{document}
    3e_illegalLaTeX Error: Illegal character in array argUsage of a letter other than r,l and c in tabular environment
    4e_tab! Misplaced alignment tab character &Missing \begin{tabular} while using tabular environment
    5e_backslash! Missing \endcsname insertedUsage of a backslash in front of the name of an environment, e.g \begin{\itemize}
    6e_delimiter! LaTeX Error: Bad math environment delimiterMissing \right immediately after the array environment
    7e_right! Extra \right\right has no matching \left OR \end{array} is missing
    8e_package! LaTeX Error: Can only be used in preambleUsage of \usepackage outside the preamble
    9e_math! Missing $ insertedMissing a starting or ending $ in Math mode, e.g m_e instead of $m_e$
    10e_parameter! Illegal parameter number in definition of...Usage of parameter number greater than the number of parameters defined in \newcommand, e.g \newcommand{\test}[1]{#3}
    11e_cmd! LaTeX Error: Command ... already definedTrying to define already existing command, e.g \newcommand{\time}
    12e_caption ! LaTeX Error: \caption outside float\caption{...} used outside table environment
    13e_braces ! Too many }'sMissing \begin{table}statement
    14e_parbox ! Argument of \@caption has an extra }Usage of \parbox in a \caption
    15e_item ! LaTeX Error: Something's wrong--perhaps a missing \itemMissing \item within enumerate environment
    16e_fraction ! Argument of \end has an extra }Misuse of fraction cmd e.g \frac{1,2}
    17e_verb ! LaTeX Error: \verb ended by end of lineNewline after \verb, e.g. \verb*dir*
    18e_invalid ! LaTeX Error: Command \end{itemize} invalid in math modeMissing $ while using math mode in \itemize
    19e_equation ! Display math should end with $$Usage of $$ inside equation mode
    20e_column ! Misplaced \omitUsage of \newcommand and \multicolumn within tabular environment
    21e_subscript ! Double subscript.Usage of double subscript
    22e_cls ! LaTeX Error: File `artcle.cls' not found.Missing .sty or .cls file
    23e_nofile ! LaTeX Error: File `file1.tex' not found.Missing file1.tex, e.g. \input{file1.tex}
    24e_sty ! LaTeX Error: File `anysize1.sty' not foundUse of unavailable package
    25e_doc_class ! LaTeX Error: Can be used only in preamble.Usage of \documentclass outside preamble
    26e_circle ! LaTeX Error: Command \circle invalid in math mode.Usage of \circle in math mode
    27e_picture ! Use of \pictur@ doesn't match its definition.Bad parameter to \picture
    28e_line ! Use of \put dosen't match its definitionBadly formatted \line directive
    29e_line_arg ! LaTeX Error: Bad \line or \vector argument.Bad \line parameter
    30e_counter ! LaTeX Error: No counter '10' defined.Counter undefined
    31e_outer ! LaTeX Error: Not in outer par mode.Using figure inside parbox
    32e_minipage ! LaTeX Error: Not in outer par mode.Using figure minipage
    33e_lost ! LaTeX Error: Float(s) lost.Counter undefined
    34e_lonely ! LaTeX Error: Lonely \item--perhaps a missing list environment.Usage of \item outside list environment
    35e_parg ! LaTeX Error: Missing p-arg in array arg.Missing p argument in tabular environment
    36e_hash ! You can't use `macro parameter character #' in vertical mode.Usage of # in normal mode
    37e_enlarge ! LaTeX Error: Suggested extra height (14454.0pt) dangerously large.Too big a number given in \enlargethispage
    38e_deftab ! LaTeX Error: Undefined tab position.Undefined tabbing
    39e_pushtab ! LaTeX Error: \pushtabs and \poptabs don't match.Unequal numbers of push and pop tabs
    40e_overtab ! LaTeX Error: Tab overflow.Too many \= in tabbing environment
    41e_nest ! LaTeX Error: Too deeply nested.Too many list environments
    42e_eqnarray ! LaTeX Error: Too many columns in eqnarray environment.More than three columns in eqnarray
    43e_classpkg ! LaTeX Error: \usepackage before \documentclass.Usage of usepackage before loading documentclass
    44e_load ! LaTeX Error: Two \LoadClass commands.More than one load class command
    45e_require ! LaTeX Error: \RequirePackage or \LoadClass in Options Section.RequirePackage may not be used with \DeclareOption
    46e_twoclass ! LaTeX Error: Two \documentclass or \documentstyle commands.More than one documentclass declaration
    47e_font ! LaTeX Error: This NFSS system isn't set up properly.Invalid font used in \DeclareErrorFont
    48e_superscript ! Double superscript.Usage of two superscripts for the same variable, e.g. 2^3^4
    49e_clash_opt ! LaTeX Error: Option clash for package csvtools.Clashing options for the same package
    50e_unknown_opt ! LaTeX Error: Unknown option ... for package ...Unkown option for a package
    51e_hyphenation ! Improper \hyphenation will be flushed.Improper parameter to \hyphenation
    52e_stack_size ! TeX capacity exceeded, sorry [main memory size=1000000]Overflow of buffer due to mistake in command definition
    53e_environment ! LaTeX Error: Environment ... undefined.Undefined environment
    54e_midline ! LaTeX Error: \< in mid lineCommand \< may appear only at the beginning of a line
    55e_infiniteGoes into infinite loopUsage of \\strut\hrule


    http://www.cs.utexas.edu/~witchel/errorclasses.html
            <div class="hide-article-box hide-article-pos text-center">
            <a class="btn-readmore" data-report-view="{&quot;mod&quot;:&quot;popu_376&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;,&quot;strategy&quot;:&quot;readmore&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_376&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;,&quot;strategy&quot;:&quot;readmore&quot;}">
                展开阅读全文
                <svg class="icon chevrondown" aria-hidden="true">
                    <use xlink:href="#csdnc-chevrondown"></use>
                </svg>
            </a>
        </div>
            <div class="recommend-box"><div class="recommend-item-box type_blog clearfix" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lcx543576178/article/details/63685912&quot;,&quot;strategy&quot;:&quot;BlogCommendFromMachineLearnPai2&quot;,&quot;index&quot;:&quot;0&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lcx543576178/article/details/63685912&quot;,&quot;strategy&quot;:&quot;BlogCommendFromMachineLearnPai2&quot;,&quot;index&quot;:&quot;0&quot;}">
    <div class="content" style="width: 712px;">
    	<a href="https://blog.youkuaiyun.com/lcx543576178/article/details/63685912" target="_blank" rel="noopener" title="Latex 常见错误汇总及解决方案">
    	<h4 class="text-truncate oneline" style="width: 552px;">
    			<em>Latex</em> <em>常见</em><em>错误</em>汇总及解决方案		</h4>
    	<div class="info-box d-flex align-content-center">
    		<p class="date-and-readNum oneline">
    			<span class="date hover-show">03-19</span>
    			<span class="read-num hover-hide">
    				阅读数 
    				1万+</span>
    			</p>
    		</div>
    	</a>
    	<p class="content" style="width: 712px;">
    		<a href="https://blog.youkuaiyun.com/lcx543576178/article/details/63685912" target="_blank" rel="noopener" title="Latex 常见错误汇总及解决方案">
    			<span class="desc oneline">windows下latex编译ACM论文模板时,出现LatexError:‘acmart.cls’notfound,解决方案:首先cd至模板所在目录下,然后运行以下命令:texacmart.ins...</span>
    		</a>
    		<span class="blog_title_box oneline ">
    								<span class="type-show type-show-blog type-show-after">博文</span>
    										<a target="_blank" rel="noopener" href="https://blog.youkuaiyun.com/lcx543576178">来自:	<span class="blog_title"> Francis Li</span></a>
    											</span>
    	</p>
    </div>
    </div>
    
    <div class="comment-edit-box d-flex">
    	<a id="commentsedit"></a>
    	<div class="user-img">
    		<a href="//me.youkuaiyun.com/Vivian_1995" target="_blank" rel="noopener">
    			<img class="" src="https://avatar.youkuaiyun.com/3/4/2/3_vivian_1995.jpg">
    		</a>
    	</div>
    	<form id="commentform">
    		<input type="hidden" id="comment_replyId">
    		<textarea class="comment-content" name="comment_content" id="comment_content" placeholder="想对作者说点什么"></textarea>
    		<div class="opt-box"> <!-- d-flex -->
    			<div id="ubbtools" class="add_code">
    				<a href="#insertcode" code="code" target="_self"><i class="icon iconfont icon-daima"></i></a>
    			</div>
    			<input type="hidden" id="comment_replyId" name="comment_replyId">
    			<input type="hidden" id="article_id" name="article_id" value="6666669">
    			<input type="hidden" id="comment_userId" name="comment_userId" value="">
    			<input type="hidden" id="commentId" name="commentId" value="">
    			<div style="display: none;" class="csdn-tracking-statistics tracking-click" data-report-click="{&quot;mod&quot;:&quot;popu_384&quot;,&quot;dest&quot;:&quot;&quot;}"><a href="#" target="_blank" class="comment_area_btn" rel="noopener">发表评论</a></div>
    			<div class="dropdown" id="myDrap">
    				<a class="dropdown-face d-flex align-items-center" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
    				<div class="txt-selected text-truncate">添加代码片</div>
    				<svg class="icon d-block" aria-hidden="true">
    					<use xlink:href="#csdnc-triangledown"></use>
    				</svg>
    				</a>
    				<ul class="dropdown-menu" id="commentCode" aria-labelledby="drop4">
    					<li><a data-code="html">HTML/XML</a></li>
    					<li><a data-code="objc">objective-c</a></li>
    					<li><a data-code="ruby">Ruby</a></li>
    					<li><a data-code="php">PHP</a></li>
    					<li><a data-code="csharp">C</a></li>
    					<li><a data-code="cpp">C++</a></li>
    					<li><a data-code="javascript">JavaScript</a></li>
    					<li><a data-code="python">Python</a></li>
    					<li><a data-code="java">Java</a></li>
    					<li><a data-code="css">CSS</a></li>
    					<li><a data-code="sql">SQL</a></li>
    					<li><a data-code="plain">其它</a></li>
    				</ul>
    			</div>  
    			<div class="right-box">
    				<span id="tip_comment" class="tip">还能输入<em>1000</em>个字符</span>
    				<input type="button" class="btn btn-sm btn-cancel d-none" value="取消回复">
    				<input type="submit" class="btn btn-sm btn-red btn-comment" value="发表评论">
    			</div>
    		</div>
    	</form>
    </div>
    
    	<div class="comment-list-container">
    	<a id="comments"></a>
    	<div class="comment-list-box">
    	</div>
    	<div id="commentPage" class="pagination-box d-none"></div>
    	<div class="opt-box text-center">
    		<div class="btn btn-sm btn-link-blue" id="btnMoreComment"></div>
    	</div>
    </div>
    
    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_59" data-pid="59"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u3491668",
            container:  s
        });
    })();
    

    编译Latex遇到File ended while scanning use of \emph

    12-14 阅读数 348

    标注重点时,\emph{},少了一个}。 博文 来自: Han_Xiao_yu的博客

    LaTeX Error: Something's wrong--perhaps a missing \..._优快云博客

    4-18

    LaTex 常见错误及解决办法 - weixin_33919950的博客 - 优快云博客

    2-20

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_60" data-pid="60"><iframe src="https://adaccount.youkuaiyun.com/#/preview/575?m=bALncQpLvHSEptnLtccyHnLcbJDtpDLppSAnnbJEcnpHnnXiJQHSLvynivtbJHinQWbbEcfpStQLityLmAbpUiAmSLnoHpcpQSiQ&amp;k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.youkuaiyun.com/1.png?d=2&amp;k=&amp;m=bALncQpLvHSEptnLtccyHnLcbJDtpDLppSAnnbJEcnpHnnXiJQHSLvynivtbJHinQWbbEcfpStQLityLmAbpUiAmSLnoHpcpQSiQ"></div></div>
    
    解决问题:编译Latex遇到 file ended while scanning use of \@xdblarg or \@frac

    11-29 阅读数 4214

    出现这个问题的原因是使用某些命令时,给出的参数不完整或者漏了半个大括号。举例:

    \begin{document}第一行第二行第三行\section{第一部分第四行第五行\end{document}\begin{document}第一行第二行第三行\section{第一部分第四行第五行\end{document}
    上边这... 博文 来自: WangJiankun_ls的博客

    Latex 常见错误

    3-5

    latex常见错误!missing $ inserted.和! File ended whi..._优快云博客

    4-15

    		<div class="recommend-item-box blog-expert-recommend-box" style="display: block;">
    		<div class="d-flex">
    			<div class="blog-expert-recommend">
    				<div class="blog-expert">
    					<div class="blog-expert-flexbox" data-report-view="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><a href="https://blog.youkuaiyun.com/lcx543576178" target="_blank"><img src="https://avatar.youkuaiyun.com/9/A/4/3_lcx543576178.jpg" alt="Francis__Li" title="Francis__Li"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="lcx543576178" data-nick="Francis__Li">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><a href="https://blog.youkuaiyun.com/lcx543576178" target="_blank"><h5 class="oneline" title="Francis__Li">Francis__Li</h5></a></span>  <p></p><p class="article-num" title="28篇文章"> 28篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><a href="https://blog.youkuaiyun.com/zgj926503" target="_blank"><img src="https://avatar.youkuaiyun.com/A/0/5/3_zgj926503.jpg" alt="Zhao-Pace" title="Zhao-Pace"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="zgj926503" data-nick="Zhao-Pace">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><a href="https://blog.youkuaiyun.com/zgj926503" target="_blank"><h5 class="oneline" title="Zhao-Pace">Zhao-Pace</h5></a></span>  <p></p><p class="article-num" title="7篇文章"> 7篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><a href="https://blog.youkuaiyun.com/lemaden520" target="_blank"><img src="https://avatar.youkuaiyun.com/8/6/6/3_lemaden520.jpg" alt="lemaden520" title="lemaden520"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="lemaden520" data-nick="lemaden520">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><a href="https://blog.youkuaiyun.com/lemaden520" target="_blank"><h5 class="oneline" title="lemaden520">lemaden520</h5></a></span>  <p></p><p class="article-num" title="22篇文章"> 22篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><a href="https://blog.youkuaiyun.com/qq1987924" target="_blank"><img src="https://avatar.youkuaiyun.com/3/2/D/3_qq1987924.jpg" alt="hust_xiaowei" title="hust_xiaowei"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="qq1987924" data-nick="hust_xiaowei">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/lhyan792/article/details/6666669&quot;}"><a href="https://blog.youkuaiyun.com/qq1987924" target="_blank"><h5 class="oneline" title="hust_xiaowei">hust_xiaowei</h5></a></span>  <p></p><p class="article-num" title="286篇文章"> 286篇文章</p><p class="article-num" title="排名:6000+"> 排名:6000+</p><p></p></div></div></div></div>
    				</div>
    			</div>
    		</div>
    	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/u012564409/article/details/78321753&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;7&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/u012564409/article/details/78321753&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;7&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/u012564409/article/details/78321753&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:4,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/u012564409/article/details/78321753&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:4,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.youkuaiyun.com/u012564409/article/details/78321753" target="_blank">              		<h4 class="text-truncate oneline" style="width: 633px;"><em>LaTex</em>犯过的错 - u012564409的专栏 - 优快云博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">11-1</span>                    </p>                  </div>                </a>            	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/qq1987924/article/details/46451705&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;8&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/qq1987924/article/details/46451705&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;8&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/qq1987924/article/details/46451705&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:5,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.youkuaiyun.com/qq1987924/article/details/46451705&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:5,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.youkuaiyun.com/qq1987924/article/details/46451705" target="_blank">              		<h4 class="text-truncate oneline" style="width: 633px;"><em>latex</em>的三线表格及一些<em>错误</em>的修改 - qq1987924的专栏 - 优快云博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">9-23</span>                    </p>                  </div>                </a>            	</div>
    
    我的LaTeX模板(article)(不断更新中)

    04-15 阅读数 7833

    我的LaTeX模板(article) 博文

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_61" data-pid="61"><iframe src="https://adaccount.youkuaiyun.com/#/preview/260?m=pcQnSSiEbQHcASJAEEDAyEJHbAbbStpJcQJEApAEmALtcHLXAJScHitDXQiHninSSLiLnnQJSWcEvUopLnbffonbSAXJLLHiAcQQ&amp;k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.youkuaiyun.com/1.png?d=2&amp;k=&amp;m=pcQnSSiEbQHcASJAEEDAyEJHbAbbStpJcQJEApAEmALtcHLXAJScHitDXQiHninSSLiLnnQJSWcEvUopLnbffonbSAXJLLHiAcQQ"></div></div>
    
    Latex常见问题总结(不断更新中)

    06-24 阅读数 1054

    Latex常见问题总结,方便记忆,查询,以及使用 博文 来自: chenyanqiao2010的博客

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_62" data-pid="62"><iframe src="https://adaccount.youkuaiyun.com/#/preview/261?m=nAEEcttEAnQbtQHELLctbAADyJnJpiHLpcnQmUAHAJXtiDnHDXJcpHQEWQoiJnDSbctJpAtXEQtnAEpciiLSSLttDSHincbJLLQQ&amp;k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.youkuaiyun.com/1.png?d=2&amp;k=&amp;m=nAEEcttEAnQbtQHELLctbAADyJnJpiHLpcnQmUAHAJXtiDnHDXJcpHQEWQoiJnDSbctJpAtXEQtnAEpciiLSSLttDSHincbJLLQQ"></div></div>
    
    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_63" data-pid="63"><script type="text/javascript">
        (function() {
            var s = "_" + Math.random().toString(36).slice(2);
            document.write('<div style="" id="' + s + '"></div>');
            (window.slotbydup = window.slotbydup || []).push({
                id: "u4221910",
                container: s
            });
        })();
    

    illegal character是什么问题?
    02-08

    初学JAVA,书上照抄了段代码如下: import javax.swing.*; //插入javax.swing包 import java.awt.*;    //插入java.awt包 public 论坛

    Latex tabular和tabular* 注意表格样式参数命令

    01-19 阅读数 2万+

    一、表格环境的定义环境tabular和tabular*是生成表格的基本工具,其定义(语法)如下:

    \begin{tabular}[位置]{列}行\end{tabular}\begin{tabular}[位置]{列}行\end{tabular}
    \begin{tabular}[... 博文 来自: niekai01的博客

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_64" data-pid="64"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u3600856",
            container:  s
        });
    })();
    

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_65" data-pid="65"><iframe src="https://adaccount.youkuaiyun.com/#/preview/577?m=inSJtLLpSnntcnSvDHSAicmbpbLLoHcEADESDpJnUtEHXiLLvEbHbviSyEESyHpQLWJJtppQciEQocvttycnHSEAncbpAbLnAbQQ&amp;k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.youkuaiyun.com/1.png?d=2&amp;k=&amp;m=inSJtLLpSnntcnSvDHSAicmbpbLLoHcEADESDpJnUtEHXiLLvEbHbviSyEESyHpQLWJJtppQciEQocvttycnHSEAncbpAbLnAbQQ"></div></div>
    
    为什么会出现illegal character?
    03-25

    我在写一个聊天室登录的jsp页面时,加入了一段javascript脚本,却在编译是老提示有illegal character,我找了半天也没发现原因,所以请教大家! 下面是有问题的一段程序: <%@ 论坛

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_66" data-pid="66"><iframe src="https://adaccount.youkuaiyun.com/#/preview/593?m=cbDSUEHiEcpUASbmJnHLcbtAAnEnDitAUtvEnHpXiJLLXLHvJiELSoEtiUiHQpWQSiEomymbLLpEbbSiLJEEpicJXoEiiHJEcbQQ&amp;k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.youkuaiyun.com/1.png?d=2&amp;k=&amp;m=cbDSUEHiEcpUASbmJnHLcbtAAnEnDitAUtvEnHpXiJLLXLHvJiELSoEtiUiHQpWQSiEomymbLLpEbbSiLJEEpicJXoEiiHJEcbQQ"></div></div>
    
                <div class="recommend-item-box type_hot_word">
                                <div class="content clearfix" style="width: 712px;">
                    <div class="float-left">
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_13/NtTaEgzsLWRvd25sb2Fk.html" target="_blank">
                        c# 返回句柄</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_15/NtTaEg0sLWRvd25sb2Fk.html" target="_blank">
                        c# update中文</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_1f/NtTaEg2sLWRvd25sb2Fk.html" target="_blank">
                        c#中类的语法结构</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_13/NtTaEg3sLWRvd25sb2Fk.html" target="_blank">
                        c# chart放大缩小</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_1e/NtTaEg4sLWRvd25sb2Fk.html" target="_blank">
                        c# 选择打印机对话框</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_16/NtTaEg5sLWRvd25sb2Fk.html" target="_blank">
                        c#浮点型转换为整型</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_1c/NtTaIgwsLWRvd25sb2Fk.html" target="_blank">
                        c#数组删除元素</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_10/NtTaIgxsLWRvd25sb2Fk.html" target="_blank">
                        c# 委托例子</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_15/NtTaIgysLWRvd25sb2Fk.html" target="_blank">
                        c# 出提示音</a>
                    </span>
                                        <span>
                        <a href="https://www.youkuaiyun.com/gather_12/NtTaIgzsLWRvd25sb2Fk.html" target="_blank">
                        c# exe緩存</a>
                    </span>
                                        </div>
                </div>
                                </div>
                            <div class="recommend-loading-box">
                <img src="https://csdnimg.cn/release/phoenix/images/feedLoading.gif">
            </div>
            <div class="recommend-end-box">
                <p class="text-center">没有更多推荐了,<a href="https://blog.youkuaiyun.com/" class="c-blue c-blue-hover c-blue-focus">返回首页</a></p>
            </div>
        </div>
                    <div class="template-box">
                <span>博客模板©2019 </span><span class="point"></span><span>由优快云提供</span><span class="point"></span>
            <span>模版主题为:skin3-template by
                                    优快云官方博客                                设计
            </span>
            </div>
            </main>
    
    <aside>
    <div id="asideProfile" class="aside-box">
    <!-- <h3 class="aside-title">个人资料</h3> -->
    <div class="profile-intro d-flex">
        <div class="avatar-box d-flex justify-content-center flex-column">
            <a href="https://blog.youkuaiyun.com/lhyan792">
              <img src="https://avatar.youkuaiyun.com/0/1/8/3_lhyan792.jpg" class="avatar_pic" username="lhyan792">
                              <img src="https://g.csdnimg.cn/static/user-reg-year/2x/9.png" class="user-years">
                          </a>
            
        </div>
        <div class="user-info d-flex flex-column">
            <p class="name csdn-tracking-statistics tracking-click" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}" username="lhyan792">
                <a href="https://blog.youkuaiyun.com/lhyan792" class="" id="uid" title="lhyan792">lhyan792</a>
            </p>
                                        <p class="personal-home-page" style="right:-96px;"><a target="_blank" href="https://me.youkuaiyun.com/lhyan792">TA的个人主页 &gt;</a></p>
                    </div>
                <div class="profile-personal-letter">
            <a id="profile-personal-alink" href="https://www.youkuaiyun.com/apps/download/?code=app_1564993662&amp;callback=csdnapp%3A%2F%2Fweb%3Furl%3Dhttps%3A%2F%2Fapp.youkuaiyun.com%2Fother%3Fusername%3Dlhyan792" target="_blank" rel="noopener">私信</a>
        </div>
        <div class="opt-box d-flex  flex-column">
            <span class="csdn-tracking-statistics tracking-click" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}">
                                    <a class="btn btn-sm btn-red-hollow attention" id="btnAttent" style="line-height:24px;padding:0;">关注</a>
                            </span>
        </div>
            </div>
    <div class="data-info d-flex item-tiling">
                <dl class="text-center" title="17">
                        <dt><a href="https://blog.youkuaiyun.com/lhyan792?t=1">原创</a></dt>
            <dd><a href="https://blog.youkuaiyun.com/lhyan792?t=1"><span class="count">17</span></a></dd>
                    </dl>
        <dl class="text-center" id="fanBox" title="24">
            <dt>粉丝</dt>
            <dd><span class="count" id="fan">24</span></dd>
        </dl>
        <dl class="text-center" title="6">
            <dt>喜欢</dt>
            <dd><span class="count">6</span></dd>
        </dl>
        <dl class="text-center" title="10">
            <dt>评论</dt>
            <dd><span class="count">10</span></dd>
        </dl>
    </div>
    <div class="grade-box clearfix">
        <dl>
            <dt>等级:</dt>
            <dd>
                <a href="https://blog.youkuaiyun.com/home/help.html#level" title="4级,点击查看等级说明" target="_blank">
                    <svg class="icon icon-level" aria-hidden="true">
                        <use xlink:href="#csdnc-bloglevel-4"></use>
                    </svg>
                </a>
            </dd>
        </dl>
        <dl>
            <dt>访问:</dt>
            <dd title="97049">
                9万+            </dd>
        </dl>
        <dl>
            <dt>积分:</dt>
            <dd title="1184">
                1184            </dd>
        </dl>
        <dl title="65195">
            <dt>排名:</dt>
            <dd>6万+</dd>
        </dl>
    </div>
    </div>
    

    热门文章

    • 				<a href="https://blog.youkuaiyun.com/lhyan792/article/details/6666669">
                                                  【转】latex常见错误对照表                    </a>
      				<p class="read">阅读数 <span>29160</span></p>
      			</li>
      						<li>
      
      				<a href="https://blog.youkuaiyun.com/lhyan792/article/details/6362014">
                                                  [转载]在linux上安装R软件                    </a>
      				<p class="read">阅读数 <span>10856</span></p>
      			</li>
      						<li>
      
      				<a href="https://blog.youkuaiyun.com/lhyan792/article/details/6799116">
                                                  使用C#的HttpWebRequest模拟登陆访问人人网(很好的一个例子,理解http的基本工作方式)                    </a>
      				<p class="read">阅读数 <span>3570</span></p>
      			</li>
      						<li>
      
      				<a href="https://blog.youkuaiyun.com/lhyan792/article/details/6402530">
                                                  用java计算gamma函数                    </a>
      				<p class="read">阅读数 <span>3339</span></p>
      			</li>
      						<li>
      
      				<a href="https://blog.youkuaiyun.com/lhyan792/article/details/6413244">
                                                  matlab 轮流画多个图 不显示图片 保存为eps(demo)                    </a>
      				<p class="read">阅读数 <span>3174</span></p>
      			</li>
      				</ul>
      </div>
      

    最新评论

    	<div class="aside-box">
    		<div id="kp_box_57" data-pid="57"><script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    

    			<div class="aside-box">
    		<div class="persion_article">
    		<div class="right_box footer_box csdn-tracking-statistics" data-report-view="{&quot;mod&quot;:&quot;popu_475&quot;}">        <div class="contact-box" id="footer-contact-box"><div class="img-box"><a href="https://edu.youkuaiyun.com?utm_source=csdn_footer" target="_blank"><img src="https://csdnimg.cn/pubfooter/images/edu-QR.png" alt="优快云学院" style="padding: 6px;width: 98px;height: 98px;"></a><p class="app-text">优快云学院</p></div><div class="img-box fr"><img style="padding: 6px;width: 98px;height: 98px;" src="https://csdnimg.cn/pubfooter/images/job-QR.png" alt="优快云企业招聘"><p class="app-text">优快云企业招聘</p></div></div>        <div class="contact-info">        <p><svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.167 2h11.666C14.478 2 15 2.576 15 3.286v9.428c0 .71-.522 1.286-1.167 1.286H2.167C1.522 14 1 13.424 1 12.714V3.286C1 2.576 1.522 2 2.167 2zm-.164 3v1L8 10l6-4V5L8 9 2.003 5z" fill="#5c5c5c" fill-rule="evenodd"></path></svg><a href="mailto:webmaster@youkuaiyun.com" target="_blank"><span class="txt">kefu@youkuaiyun.com</span></a>        <em class="width126"><svg t="1538013544186" width="17" height="17" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23556" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M902.60033922 650.96445566c-18.0718526-100.84369837-94.08399771-166.87723736-94.08399771-166.87723737 10.87530062-91.53186599-28.94715402-107.78733693-28.94715401-107.78733691C771.20003413 93.08221664 517.34798062 98.02553561 511.98620441 98.16348824 506.65661791 98.02553561 252.75857992 93.08221664 244.43541101 376.29988138c0 0-39.79946279 16.25547094-28.947154 107.78733691 0 0-75.98915247 66.03353901-94.0839977 166.87723737 0 0-9.63372291 170.35365477 86.84146124 20.85850523 0 0 21.70461757 56.79068296 61.50407954 107.78733692 0 0-71.1607951 23.19910867-65.11385185 83.46161052 0 0-2.43717093 67.16015592 151.93232126 62.56172014 0 0 108.5460788-8.0932473 141.10300432-52.14626271H526.33792324c32.57991817 44.05301539 141.10300431 52.1462627 141.10300431 52.14626271 154.3235077 4.59843579 151.95071457-62.56172013 151.95071457-62.56172014 6.00095876-60.26250183-65.11385185-83.46161053-65.11385185-83.46161052 39.77647014-50.99665395 61.4810877-107.78733693 61.4810877-107.78733692 96.45219231 149.49514952 86.84146124-20.85850523 86.84146125-20.85850523" p-id="23557" fill="#5c5c5c"></path></svg><a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDE4MDEwNl80ODc3MzVfODAwMTgwMTA2XzJf" class="qqcustomer_s" target="_blank"><span class="txt">QQ客服</span></a></em></p>        <p><em class="width126"><svg t="1538012951761" width="17" height="17" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23083" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M466.4934485 880.02006511C264.6019863 859.18313878 107.13744214 688.54706608 107.13744214 481.14947309 107.13744214 259.68965394 286.68049114 80.14660493 508.14031029 80.14660493s401.00286817 179.54304901 401.00286814 401.00286816v1.67343191C908.30646249 737.58941724 715.26799489 943.85339507 477.28978337 943.85339507c-31.71423369 0-62.61874229-3.67075386-92.38963569-10.60739903 30.09478346-11.01226158 56.84270313-29.63593923 81.5933008-53.22593095z m-205.13036267-398.87059202a246.77722444 246.77722444 0 0 0 493.5544489 0 30.85052691 30.85052691 0 0 0-61.70105383 0 185.07617062 185.07617062 0 0 1-370.15234125 0 30.85052691 30.85052691 0 0 0-61.70105382 0z" p-id="23084" fill="#5c5c5c"></path></svg><a href="http://bbs.youkuaiyun.com/forums/Service" target="_blank"><span class="txt">客服论坛</span></a></em>        <svg t="1538013874294" width="17" height="17" style="" viewBox="0 0 1194 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23784" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M1031.29689505 943.85339507h-863.70679012A71.98456279 71.98456279 0 0 1 95.60554212 871.86883228v-150.85178906c0-28.58329658 16.92325492-54.46750945 43.13135785-65.93861527l227.99160176-99.75813425c10.55341735-4.61543317 18.24580594-14.0082445 20.72896295-25.23643277l23.21211998-105.53417343a71.95757195 71.95757195 0 0 1 70.28414006-56.51881307h236.95255971c33.79252817 0 63.02360485 23.5090192 70.28414004 56.51881307l23.21211997 105.53417343c2.48315701 11.25517912 10.17554562 20.62099961 20.72896296 25.23643277l227.99160177 99.75813425a71.98456279 71.98456279 0 0 1 43.13135783 65.93861527v150.85178906A71.98456279 71.98456279 0 0 1 1031.26990421 943.85339507z m-431.85339506-143.94213475c143.94213474 0 143.94213474-48.34058941 143.94213474-107.96334876s-64.45411922-107.96334877-143.94213474-107.96334877c-79.51500637 0-143.94213474 48.34058941-143.94213475 107.96334877s0 107.96334877 143.94213475 107.96334876zM1103.254467 296.07330247v148.9894213a35.97878598 35.97878598 0 0 1-44.15700966 35.03410667l-143.94213473-33.57660146a36.0057768 36.0057768 0 0 1-27.80056231-35.03410668V296.1002933c-35.97878598-47.98970852-131.95820302-71.98456279-287.91126031-71.98456279S347.53801649 248.11058478 311.53223967 296.1002933v115.385829c0 16.73431906-11.52508749 31.25538946-27.80056233 35.03410668l-143.94213473 33.57660146A35.97878598 35.97878598 0 0 1 95.63253297 445.06272377V296.07330247C162.81272673 152.13116772 330.77670658 80.14660493 599.47049084 80.14660493s436.63077325 71.98456279 503.81096699 215.92669754z" p-id="23785" fill="#5c5c5c"></path></svg>400-660-0108 </p>        <p style="text-align:center">工作时间 8:30-22:00</p>        </div>        <div class="bg-gray">            <div class="feed_copyright">            <p><a class="right-dotte" href="//www.youkuaiyun.com/company/index.html#about" target="_blank">关于我们</a><a href="//www.youkuaiyun.com/company/index.html#recruit" target="_blank" class="right-dotte">招聘</a><a href="//www.youkuaiyun.com/company/index.html#contact" target="_blank" class="right-dotte">广告服务</a>            <a href="https://www.youkuaiyun.com/gather/A" target="_blank" class="footer_baidu">            网站地图</a></p>            <p class="fz12_baidu"><a href="https://zn.baidu.com/cse/home/index" target="_blank"><svg width="13" height="14" xmlns="http://www.w3.org/2000/svg"><path d="M8.392 7.013c1.014 1.454 2.753 2.8 2.753 2.8s1.303 1.017.47 2.98c-.833 1.962-3.876.942-3.876.942s-1.122-.36-2.424-.072c-1.303.291-2.426.181-2.426.181s-1.523.037-1.957-1.888c-.434-1.927 1.52-2.982 1.666-3.161.145-.183 1.159-.873 1.81-1.963.653-1.09 2.608-1.962 3.984.181zm1.23 5.706V9.346H8.64v2.534h-.937s-.3-.044-.356-.285V9.33l-.925.015v2.518s.042.627.925.855h2.277zm-3.685.013V7.951l-.896-.014v1.295H3.987s-1.054.086-1.422 1.28c-.129.798.114 1.266.156 1.368.043.099.383.682 1.238.852h1.978zm-2.433-1.45c-.087-.286.013-.613.057-.741.042-.128.228-.427.61-.54h.855v1.948h-.797s-.555-.029-.725-.668zm6.877-8.775c-.143.909-.865 2.108-1.99 1.962-1.121-.144-1.375-1.16-1.267-2.179C7.214 1.458 8.21.18 9.007.364c.796.18 1.52 1.235 1.374 2.143zm-4.09-.345c0 1.197-.68 2.164-1.52 2.164S3.25 3.36 3.25 2.162C3.25.967 3.932 0 4.77 0c.842 0 1.52.967 1.52 2.162zm4.854 2.09c1.34 0 1.701 1.309 1.701 1.743 0 .438.182 2.29-1.485 2.326-1.667.037-1.737-1.126-1.737-1.96 0-.874.179-2.11 1.52-2.11zm-7.93.581c.045.398.253 2.217-1.27 2.544C.427 7.704-.14 5.947.028 5.124c0 0 .18-1.78 1.412-1.89.98-.085 1.7.986 1.774 1.6z" fill="#999" fill-rule="evenodd"></path></svg><em>百度提供站内搜索</em></a>&nbsp;<a href="http://www.miibeian.gov.cn/publish/query/indexFirst.action" target="_blank" class="ml14">京ICP备19004658号</a></p>            <p class="fz12_baidu">©1999-2019 北京创新乐知网络技术有限公司 </p>            </div>        </div>        <div class="allow-info-box">        <p><a href="https://csdnimg.cn/cdn/content-toolbar/csdn-ICP.png" target="_blank">经营性网站备案信息</a>        <em class="width126"><a href="http://www.cyberpolice.cn/" target="_blank"><span>网络110报警服务</span></a></em></p>        <p><a href="http://www.bjjubao.org/" target="_blank"><span>北京互联网违法和不良信息举报中心</span></a></p>        <p><a href="http://www.12377.cn/" target="_blank"><span>中国互联网举报中心</span></a><a href="https://download.youkuaiyun.com/index.php/tutelage/" target="_blank"><span style="margin-left:8px">家长监护</span></a><a href="https://blog.youkuaiyun.com/blogdevteam/article/details/90369522" target="_blank"><span style="margin-left:8px">版权申诉</span></a></p>        </div>        </div></div>
    	</div>
    </div>
    
    <think>好的,我现在需要帮助用户了解如何在树莓派4B上配置和使用SSH。首先,我得回忆一下用户提供的引用内容,看看有什么有用的信息。用户提到了几篇关于树莓派配置SSH的文章,特别是提到新版本的Raspberry Pi Imager不再支持通过创建ssh文件来启用SSH,而是需要在烧录系统时设置用户和密码。 首先,我需要确认步骤是否正确。根据引用[3],新版本的Raspberry Pi Imager需要用户在烧录前设置SSH的用户名和密码,而不是像以前那样直接创建ssh文件。这可能是一个关键点,用户如果按照旧方法可能会失败,所以必须强调这一点。 接下来,系统安装部分。用户需要下载官方镜像,并使用Raspberry Pi Imager进行烧录。这里需要详细说明如何选择系统,如何进入设置界面配置SSH和无线网络(如果需要)。引用[2]和[3]都提到了烧录系统的基本步骤,但引用[3]特别指出了新版本的变化,所以这部分要重点说明。 然后是启用SSH的方法。除了在烧录时设置,用户可能还想知道如何手动启用,比如通过raspi-config工具或者创建ssh文件。不过根据引用[3],新版本可能不支持后者,所以需要分情况讨论。如果用户已经烧录了系统但没有启用SSH,可能需要通过串口登录后手动启用,或者使用其他方法。引用[4]提到了安装SSH的步骤,但可能适用于旧版本,需要确认是否仍然有效。 网络配置部分,用户可能需要通过有线或无线连接。无线配置可能需要用户修改wpa_supplicant.conf文件,或者在烧录时设置。引用[2]提到了换源和配置ssh,可能涉及网络设置。这部分需要详细说明两种方法:在烧录时设置,或者手动修改配置文件。 SSH连接的具体命令,比如使用ssh user@ip_address,以及如何查找树莓派的IP地址。这里可能需要用户通过路由器后台查找,或者使用arp -a命令。引用[4]提到了SSH的使用,但可能没有详细说明IP查找的方法,需要补充。 另外,用户提到的串口登录,可能在无法通过网络连接时使用。引用[1]提到配置串口登录,但用户主要关注SSH,所以可能不需要深入,但可以简要提及作为备用方法。 最后,生成相关问题需要考虑用户可能的后续疑问,比如连接失败怎么办,如何启用VNC,或者如何更新系统。这些相关问题可以帮助用户进一步解决问题。 现在,我需要组织这些信息,确保步骤清晰,引用正确,并且符合格式要求,比如使用中文,正确应用LaTeX格式(虽然这里可能用不上数学公式,但需要检查是否有需要的地方)。同时,要确保所有引用标识正确对应,比如引用[3]关于新版本的变化,引用[2]和[4]关于基础配置和SSH安装。</think>### 如何在树莓派4B上配置和使用SSH #### 1. **系统烧录与SSH预配置** - **下载系统镜像**:从树莓派官网下载适合的镜像(如Raspberry Pi OS Lite)[^3]。 - **使用Raspberry Pi Imager**: 1. 插入SD卡,打开Raspberry Pi Imager。 2. 选择镜像和存储设备后,点击右下角齿轮图标进入**高级设置**。 3. **启用SSH**:勾选“Enable SSH”,设置用户名和密码(默认用户名为自定义,如`pi`或`admin`)。 4. (可选)配置Wi-Fi:在相同界面填写无线网络名称和密码。 5. 点击“保存”后开始烧录系统。 > **注意**:2022年4月后的新版Imager已取消通过创建`ssh`文件启用SSH的方式,必须在此处设置。 #### 2. **启动与网络连接** - **有线连接**:插入网线,树莓派将自动获取IP地址。 - **无线连接**(若烧录时未配置): 1. 挂载SD卡,在`boot`分区创建`wpa_supplicant.conf`文件,内容如下: ```conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=CN network={ ssid="WiFi名称" psk="密码" } ``` 2. 保存后安全弹出SD卡。 #### 3. **SSH连接步骤** - **查找树莓派IP**: - 通过路由器管理页面查看已连接设备。 - 或使用命令`arp -a`扫描局域网设备。 - **SSH登录**: ```bash ssh 用户名@树莓派IP ``` 输入密码后即可远程控制[^4]。 #### 4. **手动启用SSH(备用方法)** - 若未预配置SSH,可通过串口登录后执行: 1. 进入系统后运行: ```bash sudo raspi-config ``` 2. 选择 **Interfacing Options → SSH → Yes** 启用服务。 3. 重启树莓派生效。 #### 5. **安全建议** - 修改默认密码:使用`passwd`命令。 - 禁用默认用户(如有):建议创建新用户并删除旧账户。 ---
    评论
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

    当前余额3.43前往充值 >
    需支付:10.00
    成就一亿技术人!
    领取后你会自动成为博主和红包主的粉丝 规则
    hope_wisdom
    发出的红包
    实付
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

    余额充值