我的例子
\documentclass{article}
\usepackage[T1,L7x]{fontenc}
\usepackage[utf8x]{inputenc}
\begin{document}
ąčęėįšųūĄČĘĖĮŠŲŪžŽ
\[
\alpha + \beta = \gamma
\]
\end{document}
产生错误的结果:
<p class="noindent" >ąčę÷ĮšųūĄČĘŻĮŠŲūžŽ</p>
当我跑步时:
htlatex test.tex "xhtml,mathml,charset=utf-8" " -cunihtf -utf8"
我做错了什么?
答案1
tex4ht
编码转换表可能l7x
不对。您可以尝试下表,如果正确,我们可以在 中修复它tex4ht
。
另存为l7x-lm.htf
:
l7x-lm 0 254
'`' '' uni0060
'´' '' uni00B4
'ˆ' '' uni02C6
'˜' '' uni02DC
'¨' '' uni00A8
'˝' '' uni02DD
'˚' '' uni02DA
'ˇ' '' uni02C7
'˘' '' uni02D8
'¯' '' uni00AF
'˙' '' uni02D9
'¸' '' uni00B8
'˛' '' uni02DB
'‚' '' uni201A
'‹' '' uni2039
'›' '' uni203A
'“' '' uni201C
'”' '' uni201D
'„' '' uni201E
'«' '' uni00AB
'»' '' uni00BB
'–' '' uni2013
'—' '' uni2014
'' '' uniEB10
'' '' uniEB4D
'ı' '' uni0131
'' '' uniF6BE
'ff' '' uniFB00
'fi' '' uniFB01
'fl' '' uniFB02
'ffi' '' uniFB03
'ffl' '' uniFB04
' ' '' uni0020
'!' '' uni0021
'"' '' uni0022
'#' '' uni0023
'$' '' uni0024
'%' '' uni0025
'&' '' uni0026
'’' '' uni2019
'(' '' uni0028
')' '' uni0029
'*' '' uni002A
'+' '' uni002B
',' '' uni002C
'-' '' uni002D
'.' '' uni002E
'/' '' uni002F
'0' '' uni0030
'1' '' uni0031
'2' '' uni0032
'3' '' uni0033
'4' '' uni0034
'5' '' uni0035
'6' '' uni0036
'7' '' uni0037
'8' '' uni0038
'9' '' uni0039
':' '' uni003A
';' '' uni003B
'<' '' uni003C
'=' '' uni003D
'>' '' uni003E
'?' '' uni003F
'@' '' uni0040
'A' '' uni0041
'B' '' uni0042
'C' '' uni0043
'D' '' uni0044
'E' '' uni0045
'F' '' uni0046
'G' '' uni0047
'H' '' uni0048
'I' '' uni0049
'J' '' uni004A
'K' '' uni004B
'L' '' uni004C
'M' '' uni004D
'N' '' uni004E
'O' '' uni004F
'P' '' uni0050
'Q' '' uni0051
'R' '' uni0052
'S' '' uni0053
'T' '' uni0054
'U' '' uni0055
'V' '' uni0056
'W' '' uni0057
'X' '' uni0058
'Y' '' uni0059
'Z' '' uni005A
'[' '' uni005B
'\' '' uni005C
']' '' uni005D
'^' '' uni005E
'_' '' uni005F
'‘' '' uni2018
'a' '' uni0061
'b' '' uni0062
'c' '' uni0063
'd' '' uni0064
'e' '' uni0065
'f' '' uni0066
'g' '' uni0067
'h' '' uni0068
'i' '' uni0069
'j' '' uni006A
'k' '' uni006B
'l' '' uni006C
'm' '' uni006D
'n' '' uni006E
'o' '' uni006F
'p' '' uni0070
'q' '' uni0071
'r' '' uni0072
's' '' uni0073
't' '' uni0074
'u' '' uni0075
'v' '' uni0076
'w' '' uni0077
'x' '' uni0078
'y' '' uni0079
'z' '' uni007A
'{' '' uni007B
'|' '' uni007C
'}' '' uni007D
'~' '' uni007E
'' '' none
'€' '' uni20AC
'' '' none
'' '' none
'ƒ' '' uni0192
'' '' none
'…' '' uni2026
'†' '' uni2020
'‡' '' uni2021
'' '' none
'‰' '' uni2030
'' '' none
'' '' none
'Œ' '' uni0152
'' '' none
'' '' none
'' '' none
'' '' none
'' '' none
'' '' none
'' '' none
'' '' none
'•' '' uni2022
'' '' none
'' '' none
'' '' none
'™' '' uni2122
'' '' none
'' '' none
'œ' '' uni0153
'' '' none
'' '' none
'' '' none
' ' '' uni00A0
'' '' none
'¢' '' uni00A2
'£' '' uni00A3
'¤' '' uni00A4
'' '' none
'¦' '' uni00A6
'§' '' uni00A7
'Ø' '' uni00D8
'©' '' uni00A9
'Ŗ' '' uni0156
'' '' none
'¬' '' uni00AC
'' '' uniEB2F
'®' '' uni00AE
'Æ' '' uni00C6
'°' '' uni00B0
'±' '' uni00B1
'²' '' uni00B2
'³' '' uni00B3
'' '' none
'µ' '' uni00B5
'¶' '' uni00B6
'·' '' uni00B7
'ø' '' uni00F8
'¹' '' uni00B9
'ŗ' '' uni0157
'' '' none
'¼' '' uni00BC
'½' '' uni00BD
'¾' '' uni00BE
'æ' '' uni00E6
'Ą' '' uni0104
'Į' '' uni012E
'Ā' '' uni0100
'Ć' '' uni0106
'Ä' '' uni00C4
'Å' '' uni00C5
'Ę' '' uni0118
'Ē' '' uni0112
'Č' '' uni010C
'É' '' uni00C9
'Ź' '' uni0179
'Ė' '' uni0116
'Ģ' '' uni0122
'Ķ' '' uni0136
'Ī' '' uni012A
'Ļ' '' uni013B
'Š' '' uni0160
'Ń' '' uni0143
'Ņ' '' uni0145
'Ó' '' uni00D3
'Ō' '' uni014C
'Õ' '' uni00D5
'Ö' '' uni00D6
'×' '' uni00D7
'Ų' '' uni0172
'Ł' '' uni0141
'Ś' '' uni015A
'Ū' '' uni016A
'Ü' '' uni00DC
'Ż' '' uni017B
'Ž' '' uni017D
'ß' '' uni00DF
'ą' '' uni0105
'į' '' uni012F
'ā' '' uni0101
'ć' '' uni0107
'ä' '' uni00E4
'å' '' uni00E5
'ę' '' uni0119
'ē' '' uni0113
'č' '' uni010D
'é' '' uni00E9
'ź' '' uni017A
'ė' '' uni0117
'ģ' '' uni0123
'ķ' '' uni0137
'ī' '' uni012B
'ļ' '' uni013C
'š' '' uni0161
'ń' '' uni0144
'ņ' '' uni0146
'ó' '' uni00F3
'ō' '' uni014D
'õ' '' uni00F5
'ö' '' uni00F6
'÷' '' uni00F7
'ų' '' uni0173
'ł' '' uni0142
'ś' '' uni015B
'ū' '' uni016B
'ü' '' uni00FC
'ż' '' uni017C
'ž' '' uni017E
l7x-lm 0 254
您必须在文件末尾添加空行htf
,否则会出现错误。不幸的是,Stackexchange 编辑器将其从代码列表中删除。
您的样本的结果: