Coder Social home page Coder Social logo

bicaption生成的中英文图标标题时,其中一个较短,另一个较长,能否设置为短的居中,长的居左? about ucasthesis HOT 5 CLOSED

wusq121 avatar wusq121 commented on June 10, 2024
bicaption生成的中英文图标标题时,其中一个较短,另一个较长,能否设置为短的居中,长的居左?

from ucasthesis.

Comments (5)

sikouhjw avatar sikouhjw commented on June 10, 2024 2

这不是需要模板应该怎么改的问题,而是我想改但是不知道怎么改,所以请教各位。 争论模板和学校的规定是没有意义的,更希望有大佬能给一个解决方案

问题在于,你说的是

能否设置为短的居中,长的居左?

这个需求并不明确,可以理解为将模板修改,也可以理解为想要一个解决方案。

将你的需求理解为:短的直接居中,长的整体居中、内部居左。
现在的情况为:都为短时,全部居中;有一个为长时,全部居左。

可以通过 bicaption 宏包的 bi-slc=off 选项来实现两个标题之间判断多行行为的分离。

\documentclass{article}
\usepackage{caption,bicaption}
\captionsetup{bi-slc=off}
\begin{document}
\begin{figure}
  \bicaption{test}{test test test test test test test test test test test test test test test test test test test test test test test}
\end{figure}
\end{document}

在模板中,做了其它处理,因此无法直接通过加选项来达到效果,请自行尝试。

from ucasthesis.

mohuangrui avatar mohuangrui commented on June 10, 2024

首先你得给出一个何为长、何为短的严格数学定义,以及检测方式,个人倾向性的设定建议自行修改

from ucasthesis.

wusq121 avatar wusq121 commented on June 10, 2024

首先你得给出一个何为长、何为短的严格数学定义,以及检测方式,个人倾向性的设定建议自行修改

bicaption中长的自然是指占据两行以上,会自动居左的。短的就是指一行以内,自动居中的。然而,由于翻译问题,很多时候中文是一行,但是英文是两行,这个时候就会很难看。
自行修改的话,应该怎么修改可以实现bicaption两个括号中的内容自适应居中或者居左,你的文档中没有相关资料。

from ucasthesis.

sikouhjw avatar sikouhjw commented on June 10, 2024

bicaption中长的自然是指占据两行以上,会自动居左的。短的就是指一行以内,自动居中的。然而,由于翻译问题,很多时候中文是一行,但是英文是两行,这个时候就会很难看。 自行修改的话,应该怎么修改可以实现bicaption两个括号中的内容自适应居中或者居左,你的文档中没有相关资料。

问题在于,学校没有规定当 \bicaption 超过一行时该怎么做。
居左、居中都是合理的,因为它们都是『居中』,只不过是标题内部的对齐方式不同。
而这部分内容,由于是『都可以』,那么模板也就没有必要、也没有义务去修改或提供修改的帮助,这纯粹是个人喜好问题。
你不能说因为我喜欢 A 样式,就必须让模板提供修改的方法,模板没有这个义务。

from ucasthesis.

wusq121 avatar wusq121 commented on June 10, 2024

bicaption中长的自然是指占据两行以上,会自动居左的。短的就是指一行以内,自动居中的。然而,由于翻译问题,很多时候中文是一行,但是英文是两行,这个时候就会很难看。 自行修改的话,应该怎么修改可以实现bicaption两个括号中的内容自适应居中或者居左,你的文档中没有相关资料。

问题在于,学校没有规定当 \bicaption 超过一行时该怎么做。 居左、居中都是合理的,因为它们都是『居中』,只不过是标题内部的对齐方式不同。 而这部分内容,由于是『都可以』,那么模板也就没有必要、也没有义务去修改或提供修改的帮助,这纯粹是个人喜好问题。 你不能说因为我喜欢 A 样式,就必须让模板提供修改的方法,模板没有这个义务。

这不是需要模板应该怎么改的问题,而是我想改但是不知道怎么改,所以请教各位。
争论模板和学校的规定是没有意义的,更希望有大佬能给一个解决方案

from ucasthesis.

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.