Giter Site home page Giter Site logo

Comments (4)

TheNetAdmin avatar TheNetAdmin commented on May 28, 2024

tex代码里也要重新指定字体,你也已经参考如下脚本修改了tex代码吗?

# change fonts
format_dir=config/format
font_specs=(
"$format_dir/general/fonts.tex"
"$format_dir/major/cs/fonts.tex"
)
for font_spec in ${font_specs[@]}; do
echo "Updating $font_spec"
sed -i "s/setmainfont{Times New Roman}/setmainfont[Path=.\/fonts\/, BoldFont={*Bold}, ItalicFont={*Italic}, BoldItalicFont={*BoldItalic}]{TimesNewRoman}/g" $font_spec
# Change all the lines like:
# \setCJKmainfont[...]{...}
# to:
# \setCJKmainfont[..., Path=./fonts/]{...}
sed -ri 's/(\\setcjkmainfont.*?)]/\1, Path=.\/fonts\/]/gi' $font_spec
# Change all the lines like:
# \setCJKfamilyfont{...}{...}[...]
# to:
# \setCJKfamilyfont{...}{...}[..., Path=./fonts/]
sed -ri 's/(\\setcjkfamilyfont.*?)]/\1, Path=.\/fonts\/]/gi' $font_spec
done
fi

from zjuthesis.

chengzhongyi8 avatar chengzhongyi8 commented on May 28, 2024

tex代码里也要重新指定字体,你也已经参考如下脚本修改了tex代码吗?

# change fonts
format_dir=config/format
font_specs=(
"$format_dir/general/fonts.tex"
"$format_dir/major/cs/fonts.tex"
)
for font_spec in ${font_specs[@]}; do
echo "Updating $font_spec"
sed -i "s/setmainfont{Times New Roman}/setmainfont[Path=.\/fonts\/, BoldFont={*Bold}, ItalicFont={*Italic}, BoldItalicFont={*BoldItalic}]{TimesNewRoman}/g" $font_spec
# Change all the lines like:
# \setCJKmainfont[...]{...}
# to:
# \setCJKmainfont[..., Path=./fonts/]{...}
sed -ri 's/(\\setcjkmainfont.*?)]/\1, Path=.\/fonts\/]/gi' $font_spec
# Change all the lines like:
# \setCJKfamilyfont{...}{...}[...]
# to:
# \setCJKfamilyfont{...}{...}[..., Path=./fonts/]
sed -ri 's/(\\setcjkfamilyfont.*?)]/\1, Path=.\/fonts\/]/gi' $font_spec
done
fi

我最初下载的是zjuthesis-v10.0.1-overleaf,然后直接导入overleaf来写的,然后下载下来,解压打开后 script目录下只有 utlies 这一个文件夹,里面是word_counts.sh 和 word_counts.ps1两个文件。

from zjuthesis.

yberlin avatar yberlin commented on May 28, 2024

脚本执行的时候提示texcount not found 怎么办

from zjuthesis.

TheNetAdmin avatar TheNetAdmin commented on May 28, 2024

脚本执行的时候提示texcount not found 怎么办

这个命令是texlive提供的,检查一下你的path系统变量是否包含了texlive的所有目录。可以参考一些texlive的安装教程。

from zjuthesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.