sybase导出数据库的表结构命令
2014-07-24 16:40
197 查看
<iframe align="top" marginwidth="0" marginheight="0" src="http://www.zealware.com/46860.html" frameborder="0" width="468" scrolling="no" height="60"></iframe>
学校的硕士论文要求中英双语目录,即一份中文目录,再有一份独立的英文目录。李树钧的主页有一个解法( http://www.hooklee.com/tex.html),手法略有些hacking:改造 /@chapter 和 /@sect 等宏 (/chapter 和 /section /subsection会用到这两个宏)。我用的 ctex 宏包已经重新定义过这两个宏了,因此不能直接用他提供的文件。
阅读他的代码之后,我找到一个简单的解决办法:定义几个新的命令,/echapter /esection /esubsection 等,与原有的 /chapter /section /subsection 等命令配合使用,然后用 /tableofengcontents 生成英文目录。用法:
/chapter{导论}
/echapter{Introduction}
/chapter{服务定义语言}
/echapter{Service Definition Language}
/section{语言映射}
/esection{Language Mapping}
以下内容放在 /begin{document} 之后:
/makeatletter
/newcommand/engcontentsname{Contents}
/newcommand/tableofengcontents{%
/if@twocolumn
/@restonecoltrue/onecolumn
/else
/@restonecolfalse
/fi
/chapter*{/engcontentsname
/@mkboth{%
/MakeUppercase/engcontentsname}{/MakeUppercase/engcontentsname}}%
/@starttoc{toe}% !!!!Define a new contents!!!!
/if@restonecol/twocolumn/fi
}
/newcommand/addengcontents[2]{%
/addcontentsline{toe}{#1}{/protect/numberline{/csname the#1/endcsname}#2}}
/makeatother
/newcommand/echapter[1]{/addengcontents{chapter}{#1}}
/newcommand/esection[1]{/addengcontents{section}{#1}}
/newcommand/esubsection[1]{/addengcontents{subsection}{#1}}
/tableofcontents % 中文目录
/tableofengcontents % 英文目录
关键技术是,/echapter /esection 等调用 /addcontentsline 将英文目录的条目写入 .toe 文件(原来的中文目录是 .toc 文件),然后用 /@starttoc{toe} 把 .toe 文件的内容按目录方式排出。
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1589348
学校的硕士论文要求中英双语目录,即一份中文目录,再有一份独立的英文目录。李树钧的主页有一个解法( http://www.hooklee.com/tex.html),手法略有些hacking:改造 /@chapter 和 /@sect 等宏 (/chapter 和 /section /subsection会用到这两个宏)。我用的 ctex 宏包已经重新定义过这两个宏了,因此不能直接用他提供的文件。
阅读他的代码之后,我找到一个简单的解决办法:定义几个新的命令,/echapter /esection /esubsection 等,与原有的 /chapter /section /subsection 等命令配合使用,然后用 /tableofengcontents 生成英文目录。用法:
/chapter{导论}
/echapter{Introduction}
/chapter{服务定义语言}
/echapter{Service Definition Language}
/section{语言映射}
/esection{Language Mapping}
以下内容放在 /begin{document} 之后:
/makeatletter
/newcommand/engcontentsname{Contents}
/newcommand/tableofengcontents{%
/if@twocolumn
/@restonecoltrue/onecolumn
/else
/@restonecolfalse
/fi
/chapter*{/engcontentsname
/@mkboth{%
/MakeUppercase/engcontentsname}{/MakeUppercase/engcontentsname}}%
/@starttoc{toe}% !!!!Define a new contents!!!!
/if@restonecol/twocolumn/fi
}
/newcommand/addengcontents[2]{%
/addcontentsline{toe}{#1}{/protect/numberline{/csname the#1/endcsname}#2}}
/makeatother
/newcommand/echapter[1]{/addengcontents{chapter}{#1}}
/newcommand/esection[1]{/addengcontents{section}{#1}}
/newcommand/esubsection[1]{/addengcontents{subsection}{#1}}
/tableofcontents % 中文目录
/tableofengcontents % 英文目录
关键技术是,/echapter /esection 等调用 /addcontentsline 将英文目录的条目写入 .toe 文件(原来的中文目录是 .toc 文件),然后用 /@starttoc{toe} 把 .toe 文件的内容按目录方式排出。
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1589348
相关文章推荐
- Oracle数据库导出导入所有的表结构和表数据命令
- 用命令 从mysql中 导出/导入数据以及导入导出表结构。(较大数据库的导入导出,速度快)
- 用命令 从mysql中 导出/导入数据以及导入导出表结构。(较大数据库的导入导出,速度快)
- MySQL 数据库、表、表结构、导入导出等相关命令
- Dos 下mysqldump:导出数据库表结构的命令
- 如何使用mysqldump命令导入导出数据库下的数据或表结构(远程or本地都适合)
- 从MySQL导出导入数据库的命令实例
- oracle 导出数据库结构到 PowerDesigner
- 导出数据库数据的方法,适合简单的数据库表格结构
- MySQL数据的导出和导入工具:mysqldump(备份数据库的命令)
- PostgreSQL数据库导出命令pg_dump详解
- MYSQL导入导出数据库命令
- 发布数据库表结构导出成WORD文档工具 DBExportDoc V1.0 For MySQL
- mysql导入导出数据库命令
- 数据库常用的一些命令(导出,导入,新建用户及授权等等)
- 导出数据库数据的方法,适合简单的数据库表格结构
- oracle数据库文件中的导入/导出(imp/exp命令)详解
- 发布数据库表结构导出成WORD文档工具 DBExportDoc V1.0 For Oracle
- oracle数据库文件中的导入/导出(imp/exp命令)
- 导出数据库数据的方法,适合简单的数据库表格结构