Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
ac813134
Commit
ac813134
authored
Jan 12, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use hook arrow for hyphens in symbol names in the LaTeX output.
parent
09a5fc19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
latexgen.cpp
src/latexgen.cpp
+1
-0
util.cpp
src/util.cpp
+3
-3
No files found.
src/latexgen.cpp
View file @
ac813134
...
...
@@ -323,6 +323,7 @@ static void writeDefaultHeaderPart1(FTextStream &t)
"
\\
fontseries{bc}
\\
selectfont%
\n
"
"
\\
color{darkgray}%
\n
"
"}
\n
"
"
\\
newcommand{
\\
+}{
\\
discretionary{
\\
mbox{
\\
scriptsize$
\\
hookleftarrow$}}{}{}}
\n
"
"
\n
"
;
// Define page & text layout
...
...
src/util.cpp
View file @
ac813134
...
...
@@ -6527,9 +6527,9 @@ void filterLatexString(FTextStream &t,const char *str,
case
'^'
:
t
<<
"$^
\\
wedge$"
;
break
;
case
'&'
:
t
<<
"
\\
&"
;
break
;
case
'*'
:
t
<<
"$
\\
ast$"
;
break
;
case
'_'
:
if
(
!
insideTabbing
)
t
<<
"
\\
-
"
;
case
'_'
:
if
(
!
insideTabbing
)
t
<<
"
\\
+
"
;
t
<<
"
\\
_"
;
if
(
!
insideTabbing
)
t
<<
"
\\
-
"
;
if
(
!
insideTabbing
)
t
<<
"
\\
+
"
;
break
;
case
'{'
:
t
<<
"
\\
{"
;
break
;
case
'}'
:
t
<<
"
\\
}"
;
break
;
...
...
@@ -6566,7 +6566,7 @@ void filterLatexString(FTextStream &t,const char *str,
((
c
>=
'A'
&&
c
<=
'Z'
&&
pc
!=
' '
&&
pc
!=
'\0'
)
||
(
c
==
':'
&&
pc
!=
':'
)
||
(
pc
==
'.'
&&
isId
(
c
)))
)
{
t
<<
"
\\
-
"
;
t
<<
"
\\
+
"
;
}
t
<<
(
char
)
c
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment