Giter VIP home page Giter VIP logo

Comments (2)

xinleiyu avatar xinleiyu commented on May 20, 2024

应该修改buptgraduatethesis.cls里的这段~
但没看懂这个逻辑...

\begin{minipage}[t]{\textwidth}%题目
      \centering
      \xiaoer[1.5]
      \vspace{0.5cm}
      \settowidth{\bupt@titlewidth}{\bupt@meta@etitle}
      \setlength{\extrarowheight}{0pt}
      \setlength{\arrayrulewidth}{0.5bp}
      \begin{tabular}{@{}p{42bp}@{\bupt@title@esep}p{95mm}@{}}
        \bupt@label@etitle & %
        \parbox[t]{95mm}{%
          \centering%
          \renewcommand\titlebreak{\\\global\let\bupt@long@title\@empty}
          \rule[-5bp]{95mm}{0.5bp}\\[-27bp]
          \bupt@meta@etitle%
        }%
        \\%
        \ifx\bupt@long@title\@empty
          \cline{2-2}
        \else
          \ifdim\bupt@titlewidth>95mm
          \cline{2-2}
          \fi
        \fi
      \end{tabular}
    \end{minipage}\\[1.3cm]

from buptgraduatethesis.

xinleiyu avatar xinleiyu commented on May 20, 2024

渣渣逻辑,期待改进;
标题为2行时候,最后一个下划线实际上是两条下划线完全重合

\begin{minipage}[t]{\textwidth}%题目
      \centering
      \xiaoer[1.5]
      \vspace{0.5cm}
      \settowidth{\bupt@titlewidth}{\bupt@meta@etitle}
      \setlength{\extrarowheight}{0pt}
      \setlength{\arrayrulewidth}{0.5bp}
      \begin{tabular}{r p{110mm}}
        \bupt@label@etitle~\bupt@title@esep & %
        \parbox[t]{110mm}{%
          \centering%
          \renewcommand\titlebreak{\\\global\let\bupt@long@etitle\@empty}
          \ifdim\bupt@titlewidth<110mm
            \bupt@meta@etitle
            \ifx \bupt@long@etitle\@empty
              \\[-54bp]%
              \rule[-5bp]{110mm}{0.5bp}\\
              \rule[-5bp]{110mm}{0.5bp}
            \else
              \\[-27bp]%
              \rule[-5bp]{110mm}{0.5bp}
            \fi
          \else
            \rule[-5bp]{110mm}{0.5bp}\\%
            \rule[-5bp]{110mm}{0.5bp}\\[-54bp]%
            \bupt@meta@etitle\\[-27bp]%
            \rule[-5bp]{110mm}{0.5bp}
          \fi
        }%
        \\%
      \end{tabular}
    \end{minipage}\\[1.5cm]

from buptgraduatethesis.

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.