Git Product home page Git Product logo

Comments (1)

migregal avatar migregal commented on July 18, 2024 1

Выглядеть будет как-то так.
Перевести сумел все титульники, но вот на метаинформации все ломается с русским языком. Подставляются пробельные символы вместо букв, если пытаться обрабатывать строку через foreach, как в этом примере. Причем, если пытаться вывести на страницу текст, то он вполне корректный

% .sty
...

\newcommand*\titlepagestudentscontent{}

\newcommand{\titlepagestudent}[2]
{
    \foreach \g/\s in {#1} {
        \gappto\titlepagestudentscontent{Студент \fixunderline} 
        \xappto\titlepagestudentscontent{{\g}}
        \gappto\titlepagestudentscontent{{25mm}{(Группа)} &}
        \gappto\titlepagestudentscontent{\fixunderline{}{40mm}{(Подпись, дата)} \vspace{1.3mm} &}
        \gappto\titlepagestudentscontent{\fixunderline}
        \xappto\titlepagestudentscontent{{\s}}
        \gappto\titlepagestudentscontent{{40mm}{(И.~О.~Фамилия)} \\}
  
...

\newcommand{\titlepageauthors}[6]
{
    \titlepagestudent{#1}{}
	{
		\small
		\begin{tabularx}{\textwidth}{@{}>{\hsize=.5\hsize}X>{\hsize=.25\hsize}X>{\hsize=.25\hsize}X@{}}
           \titlepagestudentscontent
           
			\titlepageothers{#2}{#3}
			\ifthenelse{\isempty{#4}}{}{\titlepageothers{Консультант}{#4}}
			\ifthenelse{\isempty{#5}}{}{\titlepageothers{Консультант}{#5}}
			\ifthenelse{\isempty{#6}}{}{\titlepageothers{Нормоконтролер}{#6}}
		\end{tabularx}
	}
}

...

\newcommand{\makecourseworktitle}[7]
{
	\documentmeta{РПЗ к КР}{#4}{}{#3}
	
	\begin{titlepage}
		\centering
		
		\titlepageheader{#1}{#2}
		\vspace{15.8mm}
		
		\titlepagenotetitle{К КУРСОВОЙ РАБОТЕ}{#3}
		\vfill
		
		\titlepageauthors{#4}{Руководитель курсовой работы}{#5}{#6}{#7}{}
		\vspace{14mm}
		
		\textit{{\the\year} г.}
	\end{titlepage}
	
	\setcounter{page}{2}
}

% main.tex
\makecourseworktitle
{Информатика и системы управления}
{Программное обеспечение ЭВМ и информационные технологии}
{Некоторая тема курсовой работы}
{ИУ7-71Б/И.~И.~Иванов,ИУ7-77Б/П.~П.~Петров}
{С.~С.~Сергеевич}
{}
{}

from bmstu-latex-class.

Related Issues (15)

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.