小编Jas*_*son的帖子

如何在Doxygen的注释中添加空格

我想知道有没有办法在Doxygen的html中的注释中插入空格?我在网上搜索了Doxygen手册,但我找不到任何可以做到的东西.

例如,我正在尝试添加注释如下:

//!   motor_id,          motor direction,   accel,     min veloc,     max veloc\n
//!   GAUGE_MOTOR_1,     CLOCKWISE,         100,       1,             360\n
//!   GAUGE_MOTOR_2,     CLOCKWISE,         100,       1,             360\n
//!   GAUGE_MOTOR_3,     CLOCKWISE,         100,       1,             360\n
//!   GAUGE_MOTOR_4,     CLOCKWISE,         100,       1,             360\n
//!   GAUGE_MOTOR_5,     CLOCKWISE,         400,       200,           350\n
Run Code Online (Sandbox Code Playgroud)

但是html输出显示了这样的结果

motor_id, motor direction, accel, min veloc, max veloc
GAUGE_MOTOR_1, CLOCKWISE, 100, 1, 360
GAUGE_MOTOR_2, CLOCKWISE, 100, 1, 360
GAUGE_MOTOR_3, CLOCKWISE, 100, 1, 360
GAUGE_MOTOR_4, CLOCKWISE, 100, 1, 360
GAUGE_MOTOR_5, CLOCKWISE, 400, 200, 350
Run Code Online (Sandbox Code Playgroud)

两个单词之间的空白区域将被doxygen自动缩小到一个空格.有人知道如何解决这个问题吗?这将有很大帮助.

非常感谢你.

whitespace doxygen

6
推荐指数
1
解决办法
8936
查看次数

在 Latex 中将页眉/页脚插入章节页面

我将章节样式更改如下。我在下面的代码之前使用fancyhdr包设置页眉和页脚。但问题是只有章节页面不包含页眉和页脚,其余页面都可以。谁能告诉我如何将页眉和页脚插入章节页面?非常感谢。

\makeatletter 
\def\thickhrulefill{\leavevmode \leaders \hrule height 2pt \hfill \kern \z@}
\def\@makechapterhead#1{% \vspace*{10\p@}% 
{\parindent \z@    
  {\raggedleft \reset@font%
   \fontencoding{OT1}\fontfamily{cmr}\fontseries{b}\fontshape{n}\fontsize{22pt}{12}\selectfont%    
   \bfseries\thechapter\nobreak\hspace{1ex}}%   
  {\raggedright \reset@font%
   \fontencoding{OT1}\fontfamily{cmr}\fontseries{b}\fontshape{n}\fontsize{22pt}{12}\selectfont%
   \bfseries #1}%
  \interlinepenalty\@M
  \par\nobreak
  \textcolor{orange}{\thickhrulefill}
  \vspace{26pt}
  \par\nobreak
}} 
Run Code Online (Sandbox Code Playgroud)

latex header

2
推荐指数
1
解决办法
7154
查看次数

标签 统计

doxygen ×1

header ×1

latex ×1

whitespace ×1