MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / build_header_from_meta

Function build_header_from_meta

demo/posterbuilder/convert.py:349–356  ·  view source on GitHub ↗
(meta: dict)

Source from the content-addressed store, hash-verified

347 return TITLE_SIZE_WRAP2PLUS
348
349def build_header_from_meta(meta: dict):
350 raw_title = meta.get('poster_title','') or ''
351 wrapped_title = soft_wrap_title_for_logo(raw_title)
352 t = f"\\title{{{escape_text(wrapped_title)}}}"
353 a = f"\\author{{{escape_text(meta.get('authors',''))}}}"
354 inst = f"\\institute[shortinst]{{{escape_text(meta.get('affiliations',''))}}}"
355 # 返回 wrapped_title 以便后续动态字号
356 return t, a, inst, wrapped_title
357
358# ===================== LaTeX 环境处理/模板增强 =====================
359def find_env_bounds(tex: str, env: str, start_pos: int):

Callers 1

buildFunction · 0.70

Calls 2

soft_wrap_title_for_logoFunction · 0.70
escape_textFunction · 0.70

Tested by

no test coverage detected