(meta: dict)
| 347 | return TITLE_SIZE_WRAP2PLUS |
| 348 | |
| 349 | def 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 环境处理/模板增强 ===================== |
| 359 | def find_env_bounds(tex: str, env: str, start_pos: int): |
no test coverage detected